BmapCoreFluttifyIOSIs<T> function

  1. @optionalTypeArgs
Future<bool> BmapCoreFluttifyIOSIs<T>(
  1. dynamic __this__
)

Implementation

@optionalTypeArgs
Future<bool> BmapCoreFluttifyIOSIs<T>(dynamic __this__) async {
  final typeName = T.toString();
  if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
    return __this__ is T;
  }
  else if (T == BMKUserLocation) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKUserLocation', {'__this__': __this__});
    return result;
  } else if (T == BMKBaseLog) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKBaseLog', {'__this__': __this__});
    return result;
  } else if (T == BMKCoordinateSpan) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKCoordinateSpan', {'__this__': __this__});
    return result;
  } else if (T == BMKCoordinateBounds) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKCoordinateBounds', {'__this__': __this__});
    return result;
  } else if (T == BMKCoordinateRegion) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKCoordinateRegion', {'__this__': __this__});
    return result;
  } else if (T == BMKGeoPoint) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKGeoPoint', {'__this__': __this__});
    return result;
  } else if (T == BMKMapPoint) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKMapPoint', {'__this__': __this__});
    return result;
  } else if (T == BMKMapSize) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKMapSize', {'__this__': __this__});
    return result;
  } else if (T == BMKMapRect) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKMapRect', {'__this__': __this__});
    return result;
  } else if (T == BMKPlanNode) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKPlanNode', {'__this__': __this__});
    return result;
  } else if (T == BMKIndoorPlanNode) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKIndoorPlanNode', {'__this__': __this__});
    return result;
  } else if (T == BMKAddressComponent) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKAddressComponent', {'__this__': __this__});
    return result;
  } else if (T == BMKBuildInfo) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKBuildInfo', {'__this__': __this__});
    return result;
  } else if (T == BMKMapManager) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKMapManager', {'__this__': __this__});
    return result;
  } else if (T == BMKGeneralDelegate) {
    final result = await kBmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfBMKGeneralDelegate', {'__this__': __this__});
    return result;
  }
  else {
    return false;
  }
}