ParamTransformation class
A ParamTransformation represents a change that should be applied on the type (or a modddel type) of a member parameter.
- Implementers
- Annotations
-
- @freezed
Constructors
- ParamTransformation.makeNonNull({required int? maskNb, 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.
constfactory
- ParamTransformation.makeNull()
-
Creates a NullParamTransformation. It represents a transformation where
the type of the member parameter should become 'Null'.
constfactory
- ParamTransformation.makeValid()
-
Creates a ValidParamTransformation. It represents a transformation where
the modddel type(s) of the member parameter should become "valid" (i.e it
must become prefixed with 'Valid').
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult makeNonNull(NonNullParamTransformation value), required TResult makeValid(ValidParamTransformation value), required TResult makeNull(NullParamTransformation value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? makeNonNull(NonNullParamTransformation value)?, TResult? makeValid(ValidParamTransformation value)?, TResult? makeNull(NullParamTransformation value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult makeNonNull(NonNullParamTransformation value)?, TResult makeValid(ValidParamTransformation value)?, TResult makeNull(NullParamTransformation value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult makeNonNull(int? maskNb, String? validationName)?, TResult makeValid()?, TResult makeNull()?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult makeNonNull(int? maskNb, String? validationName), required TResult makeValid(), required TResult makeNull()}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? makeNonNull(int? maskNb, String? validationName)?, TResult? makeValid()?, TResult? makeNull()?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited