of static method

  1. @useResult
FHeaderData of(
  1. BuildContext context
)

Returns the FHeaderData of the FHeader in the given context.

Contract

Throws AssertionError if there is no ancestor FHeader in the given context.

Implementation

@useResult
static FHeaderData of(BuildContext context) {
  assert(debugCheckHasAncestor<FHeaderData>('$FHeader', context));
  return context.dependOnInheritedWidgetOfExactType<FHeaderData>()!;
}