The default ‘List’ constructor isn’t available when null safety is enabled. Try using a list literal, ‘List .17 Ağu 2020
Read moreWhat is late in Dart flutter?
the late modifier is part of the new null-safety by dart it’s used to tell the compiler to treat this variable as non-nullable and will be initialized later without it the compiler will treat the variable as nullable and give error.
Read moreWhat is late variable initialization?
late modifier can be used while declaring a non-nullable variable that’s initialized after its declaration . Declaration of variables that will be initialize later is done using late modifier.3 Nis 2021
Read more