PreferProvider class

Inheritance
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
keySet Set<String>
no setter
prefer → SharedPreferences
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptType<CH>(DType<CH> chtype) bool
override
acceptValue(Object? value) bool
override
boolAttribute({required String key, bool missValue = false, AttributeTransform<bool>? transform}) BoolAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

boolOptional({required String key, AttributeTransform<bool>? transform}) BoolOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

doubleAttribute({required String key, double missValue = 0, AttributeTransform<double>? transform}) DoubleAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

doubleOptional({required String key, AttributeTransform<double>? transform}) DoubleOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

getAttribute(String key) Object?
override
getBool(String key) bool?
getDouble(String key) double?
getInt(String key) int?
getString(String key) String?
getStringList(String key) List<String>?
getValue<T extends Object>(String key) → T?
hasAttribute(String key) bool
override
intAttribute({required String key, int missValue = 0, AttributeTransform<int>? transform}) IntAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

intOptional({required String key, AttributeTransform<int>? transform}) IntOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional<T extends Object>({required String key, AttributeTransform<T>? transform}) OptionalAttribute<T>

Available on AttributeProvider, provided by the AttributeProviderExt extension

removeAttribute(String key) Object?
override
require<T extends Object>({required String key, required T missValue, AttributeTransform<T>? transform}) RequiredAttribute<T>

Available on AttributeProvider, provided by the AttributeProviderExt extension

setAttribute(String key, Object? value) → void
override
setValue(String key, Object? value) Future<bool>
stringAttribute({required String key, String missValue = "", AttributeTransform<String>? transform}) StringAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

stringOptional({required String key, AttributeTransform<String>? transform}) StringOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance PreferProvider
no setter

Static Methods

prepare() Future<PreferProvider>