TypeUnixEpochRender class
Renders a Unix time inMilliseconds or in seconds.
- Inheritance
-
- Object
- TypeRender
- TypeUnixEpochRender
Constructors
- TypeUnixEpochRender([bool inMilliseconds = true])
Properties
- cssClass → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inMilliseconds → bool
-
final
- inSeconds → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyCSS(
JSONRender render, Element output, {String? cssClass, List< Element> ? extraElements}) → void -
inherited
-
isValueUnixEpochRange(
num val) → bool -
matches(
dynamic node, dynamic nodeParent, NodeKey nodeKey) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseUnixEpoch(
dynamic node) → int? -
render(
JSONRender render, DivElement output, dynamic node, dynamic nodeOriginal, NodeKey nodeKey) → ValueProvider -
override
-
toDateTime(
int unixEpoch, bool alreadyInMilliseconds) → DateTime -
toString(
) → String -
A string representation of this object.
inherited
-
toUnixEpoch(
String? value) → int?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isNumInUnixEpochRange(
num val, [bool inMilliseconds = true]) → bool