get method
Object?
get(
- 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;
}