format method

String format(
  1. List args
)

Implementation

String format(List<dynamic> args) {
  String result = this;
  for (int i = 0; i < args.length; i++) {
    result = result.replaceAll('{$i}', args[i]?.toString() ?? '');
  }
  return result;
}