DateTimePatternTokenizer class abstract
DateTime pattern tokenizer.
This class is used to tokenize a DateTime pattern.
Example:
import 'package:now/formatter.dart';
void main() {
final pattern = 'YYYY-MM-DD HH:mm:ss';
final tokens = DateTimePatternTokenizer.parse(pattern);
print(tokens);
}
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tokenize(
String pattern) → Iterable< DateTimePatternToken> -
Tokenize the given
pattern
and return a iterable of DateTimePatternToken. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
String pattern) → Iterable< DateTimePatternToken> -
Parse the given
pattern
and return a iterable of DateTimePatternToken.