wrap static method

String wrap(
  1. String value,
  2. String before, [
  3. String? after
])

Wraps value with before and after (or just before if after is null).

Implementation

static String wrap(String value, String before, [String? after]) =>
    '$before$value${after ?? before}';