get method

Future<Ringtone?> get(
  1. String ringtoneUri, {
  2. bool withMetadata = true,
})

Gets detailed information about a ringtone.

withMetadata - Whether to include metadata.

Implementation

Future<Ringtone?> get(String ringtoneUri, {bool withMetadata = true}) async =>
    JsonHelpers.decode(
      await _invoke<Map>('ringtones.get', {
        'ringtoneUri': ringtoneUri,
        'withMetadata': withMetadata,
      }),
      Ringtone.fromJson,
    );