String sub(List<dynamic> keys) { String str = toString(); for (int i = 0; i < keys.length; i++) { str = str.replaceAll('{N}'.replaceFirst('N', i.toString()), '${keys[i]}'); } return str; }