openStash method

Future<void> openStash(
  1. {required dynamic onSelect(
    1. String
    ),
  2. required dynamic onSearch(
    1. String
    )}
)

A helper function for opening the creator from any page in the application for editing purposes.

Implementation

Future<void> openStash({
  required Function(String) onSelect,
  required Function(String) onSearch,
}) async {
  await showDialog(
    context: _navigatorKey.currentContext!,
    builder: (context) => OpenStashDialogPage(
      onSelect: onSelect,
      onSearch: onSearch,
    ),
  );
}