of static method

RollState? of(
  1. BuildContext context
)

Returns the nearest RollState ancestor.

Implementation

static RollState? of(BuildContext context) =>
    context.findAncestorStateOfType<RollState>();