isImmutable method
return true
, if the type has at least one final field
Implementation
bool isImmutable() {
return findElement(_fields.values.toList(), (field) => field.isFinal)!= null;
}
return true
, if the type has at least one final field
bool isImmutable() {
return findElement(_fields.values.toList(), (field) => field.isFinal)!= null;
}