Skip to content

Instantly share code, notes, and snippets.

@M97Chahboun
Last active June 8, 2022 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M97Chahboun/82cf60232b87b7a0f138c79ae1b16b50 to your computer and use it in GitHub Desktop.
Save M97Chahboun/82cf60232b87b7a0f138c79ae1b16b50 to your computer and use it in GitHub Desktop.
// inside of object use rocket extension 
RocketController().add("key",value,readOnly:true); // you can't edit it if readonly true
// or
// [add] return value
rocket.add<Type>("key",value);
// [get] return value
rocket.get<Type>("key");
// [remove]
rocket.remove("key");
// remove with condition
rocket.removeWhere((key,value)=>key.contains("ke"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment