getAllPhysicalScreenshots method

  1. @override
Future<List<Uint8List>> getAllPhysicalScreenshots()
override

Implementation

@override
Future<List<Uint8List>> getAllPhysicalScreenshots() async {
final data = await methodChannel.invokeMethod<List<dynamic>>(MethodChannelString.getAllPhysicalScreenshots);

if (data == null) return [];

return data.map((item) => Uint8List.fromList(List<int>.from(item))).toList();
}