isClassSupported static method

bool isClassSupported({
  1. TargetPlatform? platform,
})

Returns whether this class is supported on the current platform.

Use platform to check support for a specific platform.

Implementation

static bool isClassSupported({TargetPlatform? platform}) =>
    PlatformPathHandlerCreationParams(
      path: '',
    ).isClassSupported(platform: platform);