CustomDateTimeNumFormat class Number Formats
A custom date/time format with a user-defined format code.
- Inheritance
-
- Object
- NumFormat
- DateTimeNumFormat
- CustomDateTimeNumFormat
- Implemented types
Constructors
- CustomDateTimeNumFormat({required String formatCode})
-
Creates a custom date/time format with the given
formatCode.const
Properties
- formatCode → String
-
The Excel format code string that controls how the value is displayed.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accepts(
CellValue? value) → bool -
Whether
valuecan be displayed with this format.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String v) → CellValue -
Parses the raw stored string
vinto the CellValue this format represents.inherited -
toString(
) → String -
A string representation of this object.
override
-
writeDate(
DateCellValue value) → String -
Returns the raw serial-day string used to store
valuein the worksheet.inherited -
writeDateTime(
DateTimeCellValue value) → String -
Returns the raw serial-day string used to store
valuein the worksheet.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited