addItem method
InviteDashboardModel
addItem(
- InviteDashboardModel model,
- MemberActionModel newItem
override
Implementation
@override
InviteDashboardModel addItem(
InviteDashboardModel model, MemberActionModel newItem) {
List<MemberActionModel> newItems = model.memberActions == null
? []
: model.memberActions!.map((e) => e).toList();
newItems.add(newItem);
var newModel = model.copyWith(memberActions: newItems);
return newModel;
}