BaseModel<St> constructor

BaseModel<St>({
  1. List<Object?> equals = const [],
  2. Object? widget,
})

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));