LoginSignup
8
6

More than 3 years have passed since last update.

【Flutter】BLoCパターンとは?

Posted at

BLoCパターンとは?

BLoCパターンは、Business Logic Componentの略
BLoC PatternはFlutterでのアプリケーション開発時に用いる、状態管理手法の1つです。
ビジネスロジックをコンポーネント単位で管理しやすくするためのパターンです。

BLoCのガイドライン

  1. インプットとアウトプットは、単純なStreamとSinkに限定する。(Inputs and outputs are simple Streams/Sinks only.)
  2. 依存性は、必ず注入可能でプラットフォームに依存しないものとする。(Dependencies must be injectable and platform agnostic.)
  3. プラットフォームごとの条件分岐は、許可しない。(No platform branching allowed.)

メモ的に参考資料をまとめておきます。

参考記事

8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6