readStateDataOrNull<T> method
Implementation
T? readStateDataOrNull<T>({
required BuildContext context,
required String key,
}) {
try {
return readState(context, identifier: key) as T;
} catch (e) {
return null;
}
}
T? readStateDataOrNull<T>({
required BuildContext context,
required String key,
}) {
try {
return readState(context, identifier: key) as T;
} catch (e) {
return null;
}
}