isLateVariableInitialized function
Implementation
bool isLateVariableInitialized(var lateVariable) {
try {
// Attempt to access the variable
var temp = lateVariable;
debugPrint("temp: $temp");
return true; // Initialized
} catch (e) {
debugPrint("[[Error on isLateVariableInitialized]]: $e");
return false; // Not initialized
}
}