add method

Future<bool> add(
  1. WorkerKey key
)

Implementation

Future<bool> add(WorkerKey key) async {
  if (!apiKeys.contains(key.apiKey)) {
    final newKeys = [...keys, key];
    return _save(newKeys);
  }

  return false;
}