updateSecondaryToolbar method

  1. @override
Future<void> updateSecondaryToolbar(
  1. ChromeSafariBrowserSecondaryToolbar secondaryToolbar
)

Sets or updates (if already present) the Remote Views of the secondary toolbar in an existing custom tab session.

NOTE: Not available in a Trusted Web Activity.

Officially Supported Platforms/Implementations:

Implementation

@override
Future<void> updateSecondaryToolbar(
    ChromeSafariBrowserSecondaryToolbar secondaryToolbar) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('secondaryToolbar', () => secondaryToolbar.toMap());
  await channel?.invokeMethod("updateSecondaryToolbar", args);
  this._secondaryToolbar = secondaryToolbar;
}