A simple variable accessor.
Defining variable is like
Accessor<int>().data = 5;
Also you can access the variable with same method
If you want to define same type more then once you must use "key" parameter
Accessor<int>(key: "number").data = 3;
You can listen variable
Accessor<int>().listen((data) => print(data.toString()));
Note: Listen function triggered when value is changed or removed.
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.