isPropertySupported method

  1. @override
bool isPropertySupported(
  1. dynamic property, {
  2. TargetPlatform? platform,
})
override

Check if the given property is supported by the defaultTargetPlatform or a specific platform. The property should be one of the PlatformWebViewCreationParamsProperty or PlatformHeadlessInAppWebViewCreationParamsProperty values.

Implementation

@override
bool isPropertySupported(dynamic property, {TargetPlatform? platform}) =>
    property is PlatformWebViewCreationParamsProperty
    ? super.isPropertySupported(property, platform: platform)
    : _PlatformHeadlessInAppWebViewCreationParamsPropertySupported.isPropertySupported(
        property,
        platform: platform,
      );