isImmutable method

bool isImmutable()

return true, if the type has at least one final field

Implementation

bool isImmutable() {
  return findElement(_fields.values.toList(), (field) => field.isFinal)!= null;
}