UserDefaultsAPI class

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(String arg_key, String? arg_appGroup) Future<bool>
get(String arg_key, String? arg_appGroup) Future<Object?>
getBool(String arg_key, String? arg_appGroup) Future<bool?>
getDouble(String arg_key, String? arg_appGroup) Future<double?>
getInt(String arg_key, String? arg_appGroup) Future<int?>
getMap(String arg_key, String? arg_appGroup) Future<Map<Object?, Object?>?>
getString(String arg_key, String? arg_appGroup) Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String arg_key, String? arg_appGroup) Future<void>
set(String arg_key, Object arg_value, String? arg_appGroup) Future<void>
setAppGroup(String arg_appGroup) Future<void>
setBool(String arg_key, bool arg_value, String? arg_appGroup) Future<void>
setDouble(String arg_key, double arg_value, String? arg_appGroup) Future<void>
setInt(String arg_key, int arg_value, String? arg_appGroup) Future<void>
setMap(String arg_key, Map<Object?, Object?> arg_value, String? arg_appGroup) Future<void>
setString(String arg_key, String arg_value, String? arg_appGroup) 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?>