platform property Null safety

TargetPlatform platform
final

Implementation

final TargetPlatform platform;