FFPlaySound constructor

FFPlaySound({
  1. FFAudio? asset,
  2. FFValue? network,
  3. double? volume,
  4. bool? awaitPlayback,
  5. String? name,
})

Implementation

factory FFPlaySound({
  FFAudio? asset,
  FFValue? network,
  $core.double? volume,
  $core.bool? awaitPlayback,
  $core.String? name,
}) {
  final result = create();
  if (asset != null) result.asset = asset;
  if (network != null) result.network = network;
  if (volume != null) result.volume = volume;
  if (awaitPlayback != null) result.awaitPlayback = awaitPlayback;
  if (name != null) result.name = name;
  return result;
}