format method

IFormat format ([IFormat format ])

Simultaneous getter and setter for this instance's format.

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

Implementation

IFormat format([IFormat format]) {
  if (format != null && format is IFormat) _format = format;
  return _getFormat();
}