bloc property

B? bloc
final

Optional bloc parameter which can be supplied if the specified bloc type can't be found in the current widget tree. Can be useful if the widget is inside a BuildContext that does not contain a bloc of the specified type

Implementation

final B? bloc;