bolter_flutter 0.0.4+2 copy "bolter_flutter: ^0.0.4+2" to clipboard
bolter_flutter: ^0.0.4+2 copied to clipboard

discontinuedreplaced by: bolter
outdated

based on bolter library extensions for manage widgets and state

Simplest mutable state manager.

Usage #

A simple usage example:

import 'package:bolter/bolter.dart';
import 'package:equatable/equatable.dart';

// ignore: must_be_immutable
class State extends Equatable {
  var value = 0;
  
  @override
  List<Object> get props => [value];
}

void main() {
  final bolter = Bolter(State());
  bolter.stream((state) => state.value).listen((event) {
    print(event);
  });
  bolter.state.value++;
  bolter.shake();
  bolter.state.value++;
  bolter.shake();
}