configure static method

void configure({
  1. required String host,
  2. required String collection,
  3. required String apiKey,
  4. required String package,
  5. Map<String, String>? textDictionary,
})

Configures the plugin with the necessary parameters

@param host Base URL of the Pocketbase server @param collection Name of the collection in Pocketbase @param apiKey API key for authentication @param package Package identifier @param textDictionary Optional dictionary to customize UI text elements

Implementation

static void configure({
  required String host,
  required String collection,
  required String apiKey,
  required String package,
  Map<String, String>? textDictionary,
}) {
  _host = host;
  _collection = collection;
  _apiKey = apiKey;
  _package = package;

  // If custom text dictionary is provided, merge it with the default
  if (textDictionary != null) {
    _textDictionary = Map.from(defaultTextDictionary)..addAll(textDictionary);
  } else {
    _textDictionary = Map.from(defaultTextDictionary);
  }
}