Backpack class

Backpack class for storing data This class is not designed to store huge amounts of data.

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

auth<T>({String? key}) → T?
Returns an instance of the auth user.
contains(String key) bool
Checks if Backpack contains a key.
delete(String key) → void
Delete a value using a key.
deleteAll() → void
Delete all values from Backpack.
isNyloInitialized({String? key = "nylo"}) bool
Check if the Backpack class contains an instance of Nylo.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nylo({String key = 'nylo'}) Nylo
Returns an instance of Nylo.
read<T>(String key, {dynamic defaultValue}) → T?
Read data from the Backpack with a key.
set(String key, dynamic value) → void
Set a value using a key and value.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance Backpack
final