UserDefaultsApi class Null safety

Constructors

UserDefaultsApi({BinaryMessenger? binaryMessenger})
Constructor for UserDefaultsApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clear() Future<void>
getAll() Future<Map<String?, Object?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remove(String arg_key) Future<void>
setBool(String arg_key, bool arg_value) Future<void>
setDouble(String arg_key, double arg_value) Future<void>
setValue(String arg_key, Object arg_value) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

codec → const MessageCodec<Object?>
_UserDefaultsApiCodec()