Flutter: The method ‘map’ can’t be unconditionally invoked because the receiver can be ‘null’

Solution:

Put an ‘!’ before the .map …