of static method

FOtpItemScope of(
  1. BuildContext context
)

Returns the FOtpItemScope from the enclosing FOtpField.

Implementation

static FOtpItemScope of(BuildContext context) {
  assert(debugCheckHasAncestor<FOtpItemScope>('$FOtpField', context));
  return context.dependOnInheritedWidgetOfExactType<FOtpItemScope>()!;
}