of static method

BucketState? of(
  1. BuildContext context
)

Implementation

static BucketState? of(BuildContext context) {
  var st = context.findAncestorStateOfType<BucketState>();
  return st;
}