BaseModel<St> constructor
The constructor takes an optional List of fields which will be used to determine whether two BaseModel are equal.
Implementation
BaseModel({this.equals = const [], this.widget})
: assert(_onlyContainFieldsOfAllowedTypes(equals));