TargetPlatformVariant.only constructor Null safety

TargetPlatformVariant.only(
  1. TargetPlatform platform
)

Creates a TargetPlatformVariant that tests only the given value of TargetPlatform.

Implementation

TargetPlatformVariant.only(TargetPlatform platform) : values = <TargetPlatform>{platform};