getAll method
Gets all available ringtones.
type - Optional filter by ringtone type. If null, returns all types.
withMetadata - Whether to include metadata.
Implementation
Future<List<Ringtone>> getAll({
RingtoneType? type,
bool withMetadata = false,
}) async => JsonHelpers.decodeList(
await _invoke<List>('ringtones.getAll', {
if (type != null) 'type': type.name,
'withMetadata': withMetadata,
}),
Ringtone.fromJson,
);