isComputedGetter static method

bool isComputedGetter(
  1. FieldElement field
)

Returns true for int get name => 5

Implementation

static bool isComputedGetter(FieldElement field) {
  return !field.getter.runtimeType.toString().contains('ImplicitGetter');
}