configureCustomHeader method
Implementation
Future<bool> configureCustomHeader({
String? buttonColorHex,
String? iconColorHex,
String? fontColorHex,
}) async {
final params = <String, dynamic>{};
if (buttonColorHex != null) params['buttonColor'] = buttonColorHex;
if (iconColorHex != null) params['iconColor'] = iconColorHex;
if (fontColorHex != null) params['fontColor'] = fontColorHex;
if (params.isEmpty) throw Exception("At least one parameter is required");
try {
await channel.invokeMethod("configureCustomHeader", params);
return true;
} catch (_) {
return false;
}
}