configure static method
void
configure({})
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);
}
}