accessor 1.0.2 copy "accessor: ^1.0.2" to clipboard
accessor: ^1.0.2 copied to clipboard

A simple variable accessor.

Accessor #

A simple variable accessor.

Documentation #

Defining variable is like

    Accessor<int>().data = 5;

Also you can access the variable with same method

    Accessor<int>().data;

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.

2
likes
90
pub points
51%
popularity

Publisher

unverified uploader

A simple variable accessor.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

crypto, flutter, logger, uuid

More

Packages that depend on accessor