RelativeDateTimeBuilder.now constructor
RelativeDateTimeBuilder.now({
- required Widget builder(
- RelativeDateTime relativeDateTime,
- String formatted
- required DateTime date,
Creates a RelativeDateTimeBuilder, whose provided DateTime will always be relative to the current timestamp.
Implementation
factory RelativeDateTimeBuilder.now({
required Widget Function(
RelativeDateTime relativeDateTime,
String formatted,
)
builder,
required DateTime date,
}) {
return RelativeDateTimeBuilder(
builder: builder,
date: DateTime.now(),
other: date,
);
}