StartScreenshotStreamCommand constructor Null safety

StartScreenshotStreamCommand(
  1. {String? id,
  2. Duration interval = const Duration(seconds: 5),
  3. DateTime? timestamp}
)

Implementation

StartScreenshotStreamCommand({
  String? id,
  this.interval = const Duration(seconds: 5),
  DateTime? timestamp,
})  : assert(interval.inSeconds >= 1),
      super(
        id: id,
        payload: _toPayload(
          interval: interval,
        ),
        timestamp: timestamp,
        type: kCommandType,
      );