velocity_bloc
Dartのジェネリクスからインスパイアされた、ブロックに似た最小限で簡単な状態管理。
Dart のジェネリクスからインスパイアされた欠けている Bloc ステート管理プラグイン。
^9.0.0^2.0.7{"sdk":"flutter"}^9.0.0{"sdk":"flutter"}^5.0.0以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
codersangam - velocity_bloc stars - velocity_bloc forks - velocity_bloc GitHub release License issues - velocity_bloc
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
velocity_bloc: <latest_version>
In your library add the following import:
import 'package:velocity_bloc/velocity_bloc.dart';
.onUpdateData(dynamic data) - updates the bloc with new data on states.
.onFailedResponse(String error) - holds the failed responses/exceptions as String.
VelocityInitialState - Initial state of the bloc.
VelocityUpdateState - Loaded/Updated state of the bloc.
VelocityFailedState - Failed/Error state of the bloc.
For help getting started with Flutter, view the online documentation.
Released under MIT by @codersangam.