You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
color_disabled is global state, and since ansi color is kind of a cross-cutting concern, two different parts of an application could easily mess up each other's state. I think the best way to handle this would be to provide a means to run code in a Zone which exposes a Zone local colorDisabled value, which each ansi pen can read from.
This package has used a global for a while. I wonder if I could store an Expando on a zone and retrieve it (since Zone.currrent[#color] cannot be set).
color_disabled
is global state, and since ansi color is kind of a cross-cutting concern, two different parts of an application could easily mess up each other's state. I think the best way to handle this would be to provide a means to run code in aZone
which exposes a Zone localcolorDisabled
value, which each ansi pen can read from.I have a mechanism for this in the clock package:
https://github.com/seaneagan/clock/blob/master/lib/src/zoned_value.dart
Which I use for the
withClock
method seen here:https://github.com/seaneagan/clock
The text was updated successfully, but these errors were encountered: