GeneralCubitVariableField constructor
const
GeneralCubitVariableField({
- required ID? cubitID,
- required ID? stateID,
- required ID? variableID,
- required ModelFieldGetAttribute? modelAttribute,
- required JsonGetAttribute? jsonAttribute,
Implementation
const GeneralCubitVariableField({
required this.cubitID,
required this.stateID,
required this.variableID,
required this.modelAttribute,
required this.jsonAttribute,
}) : assert(
!(modelAttribute != null && jsonAttribute != null),
'Attribute and json attribute cannot be set together',
);