useful_classes 0.0.3 copy "useful_classes: ^0.0.3" to clipboard
useful_classes: ^0.0.3 copied to clipboard

outdated

Pack with useful classes to facilitate the creation of other resources

useful_classes #

Package with useful classes to facilitate the creation of other resources

import 'package:useful_classes/useful_classes.dart';

ValueBloc #

Simple Bloc to make it easy to use StreamBuilder in your code

final ValueBloc<String> description = ValueBloc<String>(initialValue: 'Initial Description');
description.updateValue('Another Description');
description.dispose();

ValuesBloc #

Controlling multiple "ValueBloc"

final ValuesBloc packageInfo = ValuesBloc({
    'name': ValueBloc<String>(),
    'version': ValueBloc<String>(),
});
packageInfo.updateValues({
    'name': 'useful_classes',
    'version': '0.0.1'
});
packageInfo.dispose();

Disposable #

Class to implement disposable in classes

class Example extends Disposable {
    final ValueBloc<String> description = ValueBloc<String>();

    @override
    void dispose() {
        description.dispose();
        super.dispose();
    }
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Pack with useful classes to facilitate the creation of other resources

Homepage

License

unknown (license)

Dependencies

flutter, rxdart, scoped_model

More

Packages that depend on useful_classes