format method
Formats the date using the pre-compiled pattern.
Implementation
String format(EasyDateTime date) {
if (_compiledTokens.isEmpty) return '';
final buffer = StringBuffer();
for (final token in _compiledTokens) {
buffer.write(token.format(date));
}
return buffer.toString();
}