of<B extends BitControl> static method

B of<B extends BitControl>(
  1. BuildContext context
)

Implementation

static B of<B extends BitControl>(BuildContext context) =>
    maybeOf<B>(context) ??
    (throw Exception("cannot find a TriBit of type $B in the context"));