save method

void save(
  1. BuildContext context,
  2. PresetBuilder model
)

Saves the preset and closes the dialog.

Implementation

void save(BuildContext context, PresetBuilder model) {
  model.save();
  Navigator.of(context).pop();
}