getAppBarConfig method
Get the current app bar configuration.
This method returns the current app bar settings including title, color, and visibility.
Returns a map containing the current app bar configuration.
Implementation
@override
Future<Map<String, dynamic>> getAppBarConfig() async {
try {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>('getAppBarConfig');
return Map<String, dynamic>.from(result ?? {});
} on PlatformException catch (e) {
debugPrint('Failed to get app bar config: ${e.message}');
return {};
}
}