@override T when<T>( {required T Function(ansi.AnsiCode p1) code, required T Function(String p1) text}) { return text(this.text); }