canDoAnnotation method

  1. @override
Future<bool> canDoAnnotation()

Whether the current user can do annotation on the share.
Return true means the user can do annotation, otherwise false.

Implementation

@override
Future<bool> canDoAnnotation() async {
  return await methodChannel
      .invokeMethod<bool>('canDoAnnotation')
      .then<bool>((bool? value) => value ?? false);
}