toLocalTime method
Returns the time component only.
Example:
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final time = dt.toLocalTime();
Implementation
LocalTime toLocalTime() => time;
Returns the time component only.
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final time = dt.toLocalTime();
LocalTime toLocalTime() => time;