requestAuthorization method
Implementation
@override
Future<bool> requestAuthorization({
List<String>? toShare,
List<String>? read,
}) async {
final result =
await methodChannel.invokeMethod<bool>('requestAuthorization', {
if (toShare != null && toShare.isNotEmpty) 'toShare': toShare,
if (read != null && read.isNotEmpty) 'read': read,
});
return result ?? false;
}