load method
Load state (can return null)
Implementation
@override
Future<Uint8List?> load() async {
final file = await _getFile();
if (await file.exists()) {
// Read to json
return Uint8List.fromList(await file.readAsBytes());
}
return null;
}