Step constructor Null safety

const Step(
  1. {required Widget title,
  2. Widget? subtitle,
  3. required Widget content,
  4. StepState state,
  5. bool isActive}
)

Creates a step for a Stepper.

The title, content, and state arguments must not be null.

Implementation

const Step({
  required this.title,
  this.subtitle,
  required this.content,
  this.state = StepState.indexed,
  this.isActive = false,
}) : assert(title != null),
     assert(content != null),
     assert(state != null);