I am developing a Flutter application, and i am triying to do this
abstract class DataObject extends HashMap<String, dynamic> {
//.....
}
but no matter what i try i keep getting this error.
error: The generative constructor 'HashMap<K, V> HashMap({bool Function(K, K) equals, int Function(K) hashCode, bool Function(dynamic) isValidKey})' expected, but factory found. (non_generative_constructor at .....)
This used to work when i did it in java but now in Dart i cannot get it to work.
Any help?
To clarify what i am trying to accomplish, i am planing to create a Class where all my DataObject extend from, to try and represent a record using a key value pair. And implement a group of functions that can be used on the data.