isPropertySupported method

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

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

Implementation

bool isPropertySupported(dynamic property, {TargetPlatform? platform}) =>
    property is PlatformPrintJobControllerCreationParamsProperty
    ? params.isPropertySupported(property, platform: platform)
    : _PlatformPrintJobControllerPropertySupported.isPropertySupported(
        property,
        platform: platform,
      );