deepCopy static method

DrawerModel deepCopy(
  1. String appID,
  2. DrawerType drawerType,
  3. DrawerModel from
)

Implementation

static DrawerModel deepCopy(
    String appID, DrawerType drawerType, DrawerModel from) {
  var documentID = drawerID(appID, drawerType);
  var iconMenu = copyOrDefault(appID, documentID, from.menu);
  var copyOfDrawerModel = from.copyWith(
      documentID: documentID, menu: iconMenu, headerText: from.headerText);
  return copyOfDrawerModel;
}