Sprint function

String Sprint(
  1. Object? v1, [
  2. Object? v2,
  3. Object? v3,
  4. Object? v4,
  5. Object? v5,
  6. Object? v6,
])

Returns concatenated values as a string (no trailing newline).

Like Print but returns the string instead of printing.

final s = Sprint('Hello, ', 'world'); // 'Hello, world'

Implementation

String Sprint(
  Object? v1, [
  Object? v2,
  Object? v3,
  Object? v4,
  Object? v5,
  Object? v6,
]) => SprintAll([v1, v2, v3, v4, v5, v6].where((it) => it != null));