validate property

  1. @override
String? get validate
override

Implementation

@override
String? get validate {
  if ((condition == null && fulfillment != null) ||
      (condition != null && fulfillment == null)) {
    return "condition and fulfillment must both be specified.";
  }
  return super.validate;
}