format method

String format(
  1. List args
)

Implementation

String format(List<dynamic> args) {
  return splitMapJoin(
    RegExp(r'\{\}'),
    onMatch: (m) {
      return args.removeAt(0).toString();
    },
  );
}