maybeOf static method

StreamChannelState? maybeOf(
  1. BuildContext context
)

Finds the StreamChannelState from the closest StreamChannel ancestor that encloses the given context.

Returns null if no such ancestor exists.

See also:

Implementation

static StreamChannelState? maybeOf(BuildContext context) {
  return context.findAncestorStateOfType<StreamChannelState>();
}