Provides a clean class definition with extra functionality including; copy with, json serializable, tostring, equals that supports inheritance and polymorphism
3
stars
3
forks
source link
copy with and generics don't seem to work (thought it did!) #10
The following causes an error. I suspect it is because of the _ constructor change.
When I fix uncomment example test ex60
import 'package:morphy_annotation/morphy_annotation.dart';
part 'MaxMin.morphy.dart';
@morphy
abstract class $MaxMin<T> {
T get max;
T get min;
}
var blah = maxMinXY.y.copyWith_MaxMin<double>(min: () => 0.0);
The following causes an error. I suspect it is because of the _ constructor change.
When I fix uncomment example test ex60