of static method

MixData of(
  1. BuildContext context
)

Retrieves the nearest MixData from the widget tree. Throws if not found.

Implementation

static MixData of(BuildContext context) {
  final mixData = maybeOf(context);
  assert(mixData != null, 'Mix not found in widget tree.');

  return mixData!;
}