AndroidChromeCustomTabsOptions class Null safety

This class represents all the Android-only ChromeSafariBrowser options available.

Implemented types


AndroidChromeCustomTabsOptions({@Deprecated('Use `shareState` instead') bool? addDefaultShareMenuItem, CustomTabsShareState shareState = CustomTabsShareState.SHARE_STATE_DEFAULT, bool showTitle = true, Color? toolbarBackgroundColor, bool enableUrlBarHiding = false, bool instantAppsEnabled = false, String? packageName, bool keepAliveEnabled = false, bool isSingleInstance = false, bool noHistory = false, bool isTrustedWebActivity = false, List<String> additionalTrustedOrigins = const [], TrustedWebActivityDisplayMode? displayMode, TrustedWebActivityScreenOrientation screenOrientation = TrustedWebActivityScreenOrientation.DEFAULT})


addDefaultShareMenuItem bool?
Use shareState instead.
@Deprecated('Use `shareState` instead'), read / write
additionalTrustedOrigins List<String>
Sets a list of additional trusted origins that the user may navigate or be redirected to from the starting uri.
read / write
displayMode TrustedWebActivityDisplayMode?
Sets a display mode of a Trusted Web Activity.
read / write
enableUrlBarHiding bool
Set to true to enable the url bar to hide as the user scrolls down on the page. The default value is false.
read / write
hashCode int
The hash code for this object.
read-only, inherited
instantAppsEnabled bool
Set to true to enable Instant Apps. The default value is false.
read / write
isSingleInstance bool
Set to true to launch the Android activity in singleInstance mode. The default value is false.
read / write
isTrustedWebActivity bool
Set to true to launch the Custom Tab as a Trusted Web Activity. The default value is false.
read / write
keepAliveEnabled bool
Set to true to enable Keep Alive. The default value is false.
read / write
noHistory bool
Set to true to launch the Android intent with the flag FLAG_ACTIVITY_NO_HISTORY. The default value is false.
read / write
packageName String?
Set an explicit application package name that limits the components this Intent will resolve to. If left to the default value of null, all components in all applications will considered. If non-null, the Intent can only match the components in the given application package.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
screenOrientation TrustedWebActivityScreenOrientation
Sets a screen orientation. This can be used e.g. to enable the locking of an orientation lock type.
read / write
shareState CustomTabsShareState
The share state that should be applied to the custom tab. The default value is CustomTabsShareState.SHARE_STATE_DEFAULT.
read / write
showTitle bool
Set to false if the title shouldn't be shown in the custom tab. The default value is true.
read / write
toolbarBackgroundColor Color?
Set the custom background color of the toolbar.
read / write


copy() AndroidChromeCustomTabsOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

fromMap(Map<String, dynamic> map) AndroidChromeCustomTabsOptions