bool isAccessor

Whether the invocation was a getter or a setter call.

Source

bool get isAccessor => isGetter || isSetter;