apply method

  1. @override
String apply(
  1. String value, {
  2. Map<String, dynamic>? values,
})
override

Implementation

@override
String apply(String value, {Map<String, dynamic>? values}) {
  String finalValue = value;
  if (values != null) {
    final currentValues = Map<String, dynamic>.from(values.map((key, value) =>
        identifier != null
            ? MapEntry('$identifier.$key', value)
            : MapEntry(key, value)));

    finalValue = _replace(value, currentValues);
  }

  return _replace(finalValue, this.values);
}