EngineSettings class Null safety

Settings for the engine

Inheritance
Annotations

Constructors

EngineSettings({String language = EngineConfig.defaultLanguage, bool isMetric = true, String region = '', bool muteAudio = false})
Engine settings

Properties

distanceUnit String
Currently selected distance unit
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isMetric bool
Is metric being used
final
language String
Langauge
final
muteAudio bool
Mute audio?
@JsonKey(defaultValue: false), final
region String
Region
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({String? language, bool? isMetric, String? region, bool? muteAudio}) EngineSettings
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