of<T extends ShowcaseState> static method

T of<T extends ShowcaseState>(
  1. BuildContext context, {
  2. bool listen = true,
})

The state, as the type of your own demo state. Pass listen: false from callbacks.

Implementation

static T of<T extends ShowcaseState>(BuildContext context, {bool listen = true}) =>
    _scopeOf(context, listen: listen).state as T;