Rendering constructor

Rendering(
  1. {Widget builder(
    1. BuildContext context,
    2. Duration timeElapsed
    ),
  2. dynamic onTick(
    1. Duration timeElapsed
    ),
  3. Duration startTime = Duration.zero,
  4. int startTimeSimulationTicks = 20}
)

Implementation

Rendering(
    {this.builder,
    this.onTick,
    this.startTime = Duration.zero,
    this.startTimeSimulationTicks = 20})
    : assert(builder != null, "Builder needs to defined.");