ParamTransformation.makeNonNull constructor

const ParamTransformation.makeNonNull({
  1. required int? maskNb,
  2. required String? validationName,
})

Creates a NonNullParamTransformation. It represents a transformation where the type (or a modddel type) of the member parameter should become non-nullable.

Implementation

const factory ParamTransformation.makeNonNull({
  /// The maskNb of the modddel type on which this transformation should be
  /// applied.
  ///
  /// This should be provided for Iterable2Entities member parameters.
  ///
  required int? maskNb,

  /// If the transformation is related to a specific `@NullFailure`
  /// annotation, this [validationName] equals [NullFailure.validationName].
  ///
  /// If, in the context of an annotated super-sealed class, the
  /// transformation is related to multiple `@NullFailure` annotations (one in
  /// each case-modddel, excluding the case-modddels where the parameter's
  /// type (or modddelType) is already non-nullable) : If all
  /// [NullFailure.validationName] are the same value, then this
  /// [validationName] equals it. Otherwise equals null.
  ///
  required String? validationName,
}) = NonNullParamTransformation;