DeviceSettingsModel class Null safety

Device Settings Model

Settings that can affect performance of the Background Geolocation SDK on various devices

Inheritance
Annotations

Constructors

DeviceSettingsModel({bool? ignoringBatteryOptimizations, bool? isPowerSaving, bool? gpsEnabled})

Properties

gpsEnabled bool?
Is GPS Enabled
final
hashCode int
The hash code for this object. [...]
read-only, inherited
ignoringBatteryOptimizations bool?
Is Android device ignoring battery optimizations
final
isOptimized bool
Are the current settings fully optimized for background geolocation
read-only
isPowerSaving bool?
Is iOS/Android device in power-saving mode?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({bool? ignoringBatteryOptimizations, bool? isPowerSaving, bool? gpsEnabled}) DeviceSettingsModel
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Returns the json representation of this instance
override
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → dynamic