CoreLocationFluttifyIOSAs<T> function

T? CoreLocationFluttifyIOSAs<T>(
  1. dynamic __this__
)

Implementation

T? CoreLocationFluttifyIOSAs<T>(dynamic __this__) {
  if (T == CLLocation) {
    return (CLLocation()..refId = (__this__ as Ref).refId) as T;
  } else if (T == CLHeading) {
    return (CLHeading()..refId = (__this__ as Ref).refId) as T;
  } else if (T == CLLocationCoordinate2D) {
    return (CLLocationCoordinate2D()..refId = (__this__ as Ref).refId) as T;
  } else if (T == CLLocationManager) {
    return (CLLocationManager()..refId = (__this__ as Ref).refId) as T;
  } else {
    return null;
  }
}