You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@MappableClass()
class VgnItmEst<V extends VgnItm<T>, T extends Tag> with VgnItmEstMappable<V, T> {
final V vgnItm;
const VgnItmEst({
required this.vgnItm,
});
}
@MappableClass()
abstract class VgnItm<T extends Tag> with VgnItmMappable<T> {
final List<T>? tags;
const VgnItm({
this.tags,
});
}
abstract class Tag {
int get iconCodePoint;
String get name;
int get value;
}
Add an extends - causes 2 exceptions in the mapper file:
@MappableClass()
class VgnItmEst<V extends VgnItm<T>, T extends Tag> extends Entity<int> with VgnItmEstMappable<V, T> {
final V vgnItm;
const VgnItmEst({
required this.vgnItm,
super.id,
});
}
@MappableClass()
abstract class VgnItm<T extends Tag> extends Entity<int> with VgnItmMappable<T> {
final List<T>? tags;
const VgnItm({
this.tags,
super.id,
});
}
abstract class Tag {
int get iconCodePoint;
String get name;
int get value;
}
@MappableClass()
abstract class Entity<T> with EntityMappable<T> {
final T? id;
const Entity({
this.id,
});
}
The type 'VgnItmCopyWith' is declared with 4 type parameters, but 3 type arguments were given.
Try adjusting the number of type arguments to match the number of type parameters.dartwrong_number_of_type_arguments
The type 'VgnItmCopyWith' is declared with 4 type parameters, but 3 type arguments were given.
Try adjusting the number of type arguments to match the number of type parameters.dartwrong_number_of_type_arguments
The text was updated successfully, but these errors were encountered:
This code works:
Add an extends - causes 2 exceptions in the mapper file:
Exception 1:
Exception 2:
The text was updated successfully, but these errors were encountered: