ReleaseDeviceCommand constructor Null safety

ReleaseDeviceCommand(
  1. {required String deviceId,
  2. String? id,
  3. DateTime? timestamp}
)

Implementation

ReleaseDeviceCommand({
  required this.deviceId,
  String? id,
  DateTime? timestamp,
}) : super(
        id: id,
        payload: _toPayload(
          deviceId: deviceId,
        ),
        timestamp: timestamp,
        type: kCommandType,
      );