codenic_bloc_use_case 6.1.0 copy "codenic_bloc_use_case: ^6.1.0" to clipboard
codenic_bloc_use_case: ^6.1.0 copied to clipboard

A suite of abstract cubits to reduce boilerplate code and construct app use cases.

example/main.dart

// ignore_for_file: avoid_print

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:codenic_bloc_use_case/codenic_bloc_use_case.dart';

import 'src/simple_bloc_observer.dart';

part 'runner_sample.dart';
part 'watcher_sample.dart';

/// To run, enter the following code:
/// ```bash
/// dart run example/main.dart
/// ```
///
/// To view the entire code example, see
/// https://github.com/CodenicCoders/codenic_bloc_use_case/tree/master/example

Future<void> main() async {
  Bloc.observer = SimpleBlocObserver();

  print(
    'Enter [0] for Runner, [1] for Watcher: ',
  );

  final input = stdin.readLineSync(encoding: utf8);

  switch (input) {
    case '0':
      await runner();
    case '1':
      await watcher();
  }
}
5
likes
160
points
174
downloads

Publisher

verified publishercodenic.dev

Weekly Downloads

A suite of abstract cubits to reduce boilerplate code and construct app use cases.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

bloc, codenic_exception_converter, equatable, meta

More

Packages that depend on codenic_bloc_use_case