Skip to content

onurmio/Accessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages