globalFormat method

IFormat globalFormat ([IFormat format ])

Simultaneous getter and setter for the global format.

If no argument is specified, returns the current global format. If a valid format is specified, sets the global format and then returns the new value.

Implementation

static IFormat globalFormat([IFormat format]) {
  if (format != null) _globalFormat = format;
  return _globalFormat;
}