lifetime 1.0.0 copy "lifetime: ^1.0.0" to clipboard
lifetime: ^1.0.0 copied to clipboard

Lifetime flutter project.

Lifetime #

Flutter project

Getting Started #

define #

final definition = Lifetime.eternal.defineNested();
definition.lifetime.add(() => print("terminated"));
definition.terminate();

intersection #

final def1 = Lifetime.eternal.defineNested();
final def2 = Lifetime.eternal.defineNested();

final defIntersection = Lifetime.intersection([def1.lifetime, def2.lifetime]);
defIntersection.lifetime.add(() { print("def1 or def2 is terminated"); });

def1.terminate();

nested #

final def1 = Lifetime.eternal.defineNested();
final def2 = def1.defineNested();

def1.lifetime.add(() => print("def1 is terminated"));
def2.lifetime.add(() => print("def2 is terminated"));

def1.terminate();
0
likes
125
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Lifetime flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on lifetime