copy method

  1. @override
Future<MonaStyle?> copy(
  1. AppModel app,
  2. String newName
)
override

Implementation

@override
Future<MonaStyle?> copy(AppModel app, String newName) async {
  var newModel = monaStyleAttributesModel.copyWith(documentID: newName);
  await monaStyleAttributesRepository(appId: app.documentID)!.add(newModel);
  return MonaStyle(
      styleFamily, newName, AllowedUpdates.allAllowed(), newModel);
}