TickerMode constructor Null safety

const TickerMode(
  1. {Key? key,
  2. required bool enabled,
  3. required Widget child}
)

Creates a widget that enables or disables tickers.

The enabled argument must not be null.

Implementation

const TickerMode({
  super.key,
  required this.enabled,
  required this.child,
}) : assert(enabled != null);