TargetPlatformVariant.all constructor

TargetPlatformVariant.all({
  1. Set<TargetPlatform> excluding = const <TargetPlatform>{},
})

Creates a TargetPlatformVariant that tests all values from the TargetPlatform enum. If excluding is provided, will test all platforms except those in excluding.

Implementation

TargetPlatformVariant.all({
  Set<TargetPlatform> excluding = const <TargetPlatform>{},
}) : values = TargetPlatform.values.toSet()..removeAll(excluding);