```dart import 'package:flutter/foundation.dart'; if (kDebugMode) { // デバッグモードの処理 } ``` [参考](https://blog.dalt.me/2513)