memberValidation property

(bool Function(Group, Part)?) memberValidation

Gets or sets the predicate that determines whether or not a Part may become a member of this group. If this is non-null, the predicate is called in addition to any CommandHandler#memberValidation predicate.

The default predicate is null, which is equivalent to simply returning true. The first argument will be this Group. The second argument will be a Part, typically a Node, but will not be a Link or an Adornment.

The function, if supplied, must not have any side-effects.

Implementation

_i2.bool Function(
  _i3.Group,
  _i3.Part,
)? get memberValidation => (
      _i3.Group p0,
      _i3.Part p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'memberValidation',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
void memberValidation=(bool value(Group, Part)?)

Implementation

set memberValidation(
    _i2.bool Function(
      _i3.Group,
      _i3.Part,
    )? value) {
  _i4.setProperty(
    this,
    'memberValidation',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}