get method

  1. @override
Object? get(
  1. Token name
)
override

Implementation

@override
Object? get(Token name) {
  switch (name.lexeme) {
    case 'getCurrentPosition':
      return GeolocatorGetCurrrentPosition();
    case 'checkPermission':
      return Geolocator.checkPermission;
    case 'requestPermission':
      return Geolocator.requestPermission;
    case 'isLocationServiceEnabled':
      return Geolocator.isLocationServiceEnabled;
    case 'getLastKnownPosition':
      return Geolocator.getLastKnownPosition;
    case 'openAppSettings':
      return Geolocator.openAppSettings;
    case 'openLocationSettings':
      return Geolocator.openLocationSettings;
  }
  return null;
}