isLocallyAvailable method

Future<bool> isLocallyAvailable(
  1. String id, {
  2. bool isOrigin = false,
})
inherited

Implementation

Future<bool> isLocallyAvailable(String id, {bool isOrigin = false}) async {
  if (Platform.isAndroid) {
    return true;
  }
  final bool result = await _channel.invokeMethod<bool>(
    PMConstants.mIsLocallyAvailable,
    <String, dynamic>{'id': id, 'isOrigin': isOrigin},
  ) as bool;
  return result;
}