kFlutterMemoryAllocationsEnabled top-level constant

bool const kFlutterMemoryAllocationsEnabled

If true, Flutter objects dispatch the memory allocation events.

By default, the constant is true for debug mode and false for profile and release modes. To enable the dispatching for release mode, pass the compilation flag --dart-define=flutter.memory_allocations=true.

Implementation

const bool kFlutterMemoryAllocationsEnabled = _kMemoryAllocations || kDebugMode;