map defined as follow:
Map<String,dynamic> allAvailableTime;
the map should be empty when user initialize the page:
I would like to perform null check before getting data from the map however these are not working...
check 1:
allAvailableTime == null ?
error:
type 'String' is not a subtype of type 'Widget'
check 2:
allAvailableTime == {} ?
the check should return True, but it returns False instead ..
check 3:
allAvailableTime.isEmpty ?
error 3:
The getter 'isEmpty' was called on null.
Receiver: null
Tried calling: isEmpty