copyWith method

ResolvedType copyWith({
  1. List<TypeHint>? hints,
  2. bool? nullable,
  3. bool? isArray,
})

Implementation

ResolvedType copyWith(
    {List<TypeHint>? hints, bool? nullable, bool? isArray}) {
  return ResolvedType(
    type: type,
    hints: hints ?? this.hints,
    nullable: nullable ?? this.nullable,
    isArray: isArray ?? this.isArray,
  );
}