getPlatformSummary method
Returns a summary of the Android platform running the app.
Implementation
@override
Future<PlatformSummary> getPlatformSummary() async {
final Map<Object?, Object?>? summaryMap = await methodChannel
.invokeMapMethod<Object?, Object?>('getPlatformSummary');
if (summaryMap == null) {
throw PlatformException(
code: 'native_lens_empty_summary',
message: 'Android returned an empty platform summary.',
);
}
return PlatformSummary.fromMap(summaryMap);
}