iswitchBody property
String
iswitchBody
Implementation
String get iswitchBody {
final ifElse = this.fields.map((field) => field.iswitchIf).join(' else ');
return '''
final $mixinName$typeArgsWithParens __x\$ = this;
$ifElse else {
throw StateError('an instance of $mixinName has no case selected');
}''';
}