rocket_singleton 0.0.3 copy "rocket_singleton: ^0.0.3" to clipboard
rocket_singleton: ^0.0.3 copied to clipboard

Package for save and get object anywhere by type or key.

Getting started #

Rocket Singleton easy package for save and get data from memory by type or key

Usage #

// Use save extension
final Post post = Post().save(key: "post", readOnly: true);
// Or
// Use Rocket object
Rocket.add(value,readOnly: true); // you can't edit it if readonly true
// or
// add by key if you have multi object with same type
Rocket.add<Type>(value, key: "key");
// [get] return value
Rocket.get<Type>("key");
// or get only by Type
Rocket.get<Type>()
// [remove]
Rocket.remove("key");
// remove with condition
Rocket.removeWhere((key,value)=>key.contains("ke"));

1
likes
150
pub points
6%
popularity

Publisher

verified publisherbixat.dev

Package for save and get object anywhere by type or key.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rocket_singleton