addCustomReplacements static method

Future<void> addCustomReplacements({
  1. required Map<String, String>? customData,
})

Adds custom replacements map to the notifications. Map keys are the strings to replace with the values Saved data persists between app openings

Implementation

static Future<void> addCustomReplacements({
  required Map<String, String>? customData,
}) async {
  try {
    await _channel.invokeMethod(
      'add_custom_replacements',
      customData,
    );
  } catch (e) {
    rethrow;
  }
}