of static method

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

Returns the FButtonData of the FButton in the given context.

Implementation

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