members2 property
List<ClassMember>
get
members2
Implementation
List<ClassMember> get members2 {
// Accessing `body` may throw UnsupportedError when the analyzer is
// configured without optional AST features (e.g. declaring constructors).
// Guard here so callers don't need to handle the exception.
try {
switch (body) {
case final BlockClassBody body:
return body.members;
default:
return [];
}
} on UnsupportedError {
return [];
}
}