maybeOf<B extends BitControl> static method

B? maybeOf<B extends BitControl>(
  1. BuildContext context
)

Implementation

static B? maybeOf<B extends BitControl>(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<_TriInherited<B>>()
    ?.provider
    .value as B;