now function

DateTime now(
  1. List args
)

Provides a now() function that returns the current time.

void -> DateTime

var now = now();
print("Current time: $now");

Implementation

DateTime now(List args) => DateTime.now();