toWire method

VolumeSettingsWire toWire()

Converts to wire datatype which is used for host platform communication.

Implementation

VolumeSettingsWire toWire() => VolumeSettingsWire(
      volume: volume,
      fadeDurationMillis: fadeDuration?.inMilliseconds,
      fadeSteps: fadeSteps.map((e) => e.toWire()).toList(),
      volumeEnforced: volumeEnforced,
    );