prefix method Null safety

String? prefix(
  1. String? prefix
)

Implementation

String? prefix(String? prefix) => (this != null) ? ((prefix != null) ? '${prefix}${this}' : this) : null;