bolter 3.2.8 copy "bolter: ^3.2.8" to clipboard
bolter: ^3.2.8 copied to clipboard

outdated

Are you tired of complex state management solutions for your Flutter applications? Introducing Bolter, a simple yet powerful state management solution that streamlines your app's performance and impro [...]

example/bolter_example.dart

import 'dart:async';

import 'package:bolter/bolter.dart';

void main() {
  counter();
}

void counter() {
  int v = 0;
  defaultBolter.listen(() => v, () {
    print(v);
  });
  defaultBolter.runAndUpdate(action: () => v = 20);
}

final list = <int>[1, 2];
//race simulation
//websocket simulation
void raceSimulation() {
  Timer.periodic(Duration(milliseconds: 100), (timer) async {
    list.add(list.length);
  });
  Timer.periodic(Duration(milliseconds: 200), (timer) async {
    print(list.length);
    final lb = list.length;
    list.forEach((element) {
      // print(element);
    });
    await Future.delayed(Duration(milliseconds: 150));
    print(lb == list.length);
  });
}
9
likes
0
points
154
downloads

Publisher

verified publisherrenesanse.net

Weekly Downloads

Are you tired of complex state management solutions for your Flutter applications? Introducing Bolter, a simple yet powerful state management solution that streamlines your app's performance and improves code readability. In this video, we'll walk you through the Bolter state manager and show you how it can transform the way you build your Flutter apps. Say goodbye to the headaches of traditional state management and welcome a new era of simplicity and efficiency!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable

More

Packages that depend on bolter