play method

Future<void> play({
  1. AndroidSound? android,
  2. IosSound? ios,
  3. String? fromAsset,
  4. String? fromFile,
  5. double? volume,
  6. bool? looping,
  7. bool? asAlarm,
})

Implementation

Future<void> play({
  AndroidSound? android,
  IosSound? ios,
  String? fromAsset,
  String? fromFile,
  double? volume,
  bool? looping,
  bool? asAlarm,
}) {
  return FlutterRingtonePlayerPlatform.instance.play(
    ios: ios,
    volume: volume,
    looping: looping,
    asAlarm: asAlarm,
    android: android,
    fromAsset: fromAsset,
    fromFile: fromFile,
  );
}