getPermissionState method

Future<PermissionState> getPermissionState(
  1. PermissionRequestOption requestOption
)

Implementation

Future<PermissionState> getPermissionState(
  PermissionRequestOption requestOption,
) async {
  final int result = await _channel.invokeMethod(
    PMConstants.mGetPermissionState,
    requestOption.toMap(),
  );
  return PermissionState.values[result];
}