validateRequiredProps method

  1. @Deprecated('4.0.0')
  2. @mustCallSuper
  3. @override
void validateRequiredProps(
  1. Map appliedProps
)
override

Validates that props with the @requiredProp annotation are present. Deprecated. Will be removed in the 4.0.0 release.

Props annotated with @requiredProp will automatically be validated in UiComponent2 instances.

Implementation

@Deprecated('4.0.0')
@mustCallSuper
@override
void validateRequiredProps(Map appliedProps) {
  throw UnsupportedError('[validateRequiredProps] is not supported in UiComponent2, use [propTypes] instead.');
}