Printf function
Prints formatted output to Writer.
Supports common printf format specifiers: %s, %d, %i, %f, %x, %X, %o, %b, %e, %E, %g, %G, %a, %A, %c, %p. Use %% for a literal percent sign. Returns the number of characters written.
Printf('Name: %s, Age: %d\n', 'Alice', 30);
Implementation
int Printf(
String format, [
Object? v1,
Object? v2,
Object? v3,
Object? v4,
Object? v5,
Object? v6,
]) => PrintfAll(
format,
[v1, v2, v3, v4, v5, v6].where((it) => it != null).toList(),
);