MethodChannelLocation class

Inheritance

Constructors

MethodChannelLocation()
factory
MethodChannelLocation.private(EventChannel _eventChannel)
This constructor is only used for testing and shouldn't be accessed by users of the plugin. It may break or change at any time.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocation({LocationSettings? settings}) Future<LocationData?>
Return the current location.
override
getPermissionStatus() Future<PermissionStatus?>
Get the permission status of the app
override
isGPSEnabled() Future<bool?>
Return true if GPS is enabled on the device
override
isNetworkEnabled() Future<bool?>
Return true if Network is enabled on the device
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLocationChanged({bool inBackground = false}) Stream<LocationData?>
Return a stream of the user's location.
override
requestPermission() Future<PermissionStatus?>
Request location permission for the app
override
setLocationSettings(LocationSettings settings) Future<bool?>
Set new global location settings for the app
override
toString() String
A string representation of this object.
inherited
updateBackgroundNotification({String? channelName, String? title, String? iconName, String? subtitle, String? description, Color? color, bool? onTapBringToFront}) Future<bool?>
Return true if the notification was properly updated
override

Operators

operator ==(Object other) bool
The equality operator.
inherited