FlexLayoutLog class

Centralized helper for flex layout diagnostics.

Disabled by default. Enable by selecting impls/features via the static methods. Example:

FlexLayoutLog.enableImpls([FlexImpl.runMetrics, FlexImpl.flexibleLengths]);
FlexLayoutLog.enableFeatures([FlexFeature.baseSize, FlexFeature.distribution]);

Constructors

FlexLayoutLog()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

enabledFeatures Set<FlexFeature>?
no setter
enabledImpls Set<FlexImpl>?
no setter

Static Methods

disableAll() → void
Disable all impls/features (without removing filters object).
enableAll() → void
Enable all impls/features.
enableFeatures(Iterable<FlexFeature> features) → void
Enable only the specified features. Empty set disables all.
enableImpls(Iterable<FlexImpl> impls) → void
Enable only the specified implementations.
log({required FlexImpl impl, required FlexFeature feature, required String message(), Level level = Level.FINER}) → void