withGetterSetterPair method Null safety

void withGetterSetterPair(
  1. Declaration getter,
  2. Declaration setter,
  3. {List<Code>? supportingDeclarations}
)

Implement this as a getter/setter pair, with an optional new backing field.

Implementation

void withGetterSetterPair(Declaration getter, Declaration setter,
    {List<Code>? supportingDeclarations});