withStyle static method
Calls action
in a Zone that has it's format
variable style set to style
.
Implementation
static void withStyle(VariableStyle style, void Function() action) {
runZoned(() {
action();
}, zoneValues: {'console.format.variable_style': style});
}