wrap method

String wrap({
  1. String? before,
  2. String? after,
})

Wraps the string with the given before and after strings.

Implementation

String wrap({String? before, String? after}) {
  final String b = before ?? '';
  final String a = after ?? '';
  return '$b$this$a';
}