debugDefaultTargetPlatformOverride top-level property

TargetPlatform debugDefaultTargetPlatformOverride
read / write

Override the defaultTargetPlatform.

Setting this to null returns the defaultTargetPlatform to its original value (based on the actual current platform).

This setter is only available intended for debugging purposes. To change the target platform in release builds, use the platform override APIs (such as ThemeData.platform in the material library).

Implementation

TargetPlatform debugDefaultTargetPlatformOverride