validateRequiredProps method

  1. @override
  2. @$mustCallSuper
void validateRequiredProps()
override

Validate at run-time that all required props are set.

This method is overridden in generated files.

Implementation

@override
@UiProps.$mustCallSuper
void validateRequiredProps() {
  super.validateRequiredProps();
  if (!props.containsKey('store') &&
      !requiredPropNamesToSkipValidation.contains('store')) {
    throw MissingRequiredPropsError('Required prop `store` is missing.');
  }
}