updateColorsFromQueryParameters method
Implementation
void updateColorsFromQueryParameters(Map<String, String> queryParams) {
if (queryParams.containsKey('primary')) {
_primary = HexColor(queryParams['primary']!);
}
if (queryParams.containsKey('secondary')) {
_secondary = HexColor(queryParams['secondary']!);
}
if (queryParams.containsKey('accent')) {
_accent = HexColor(queryParams['accent']!);
}
// Notify listeners to update the UI
notifyListeners();
}