requestAuthorization method

  1. @override
Future<bool> requestAuthorization({
  1. List<String>? toShare,
  2. List<String>? read,
})
override

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;
}