setMinute method

DateTime setMinute(
  1. int minute, [
  2. int? second,
  3. int? millisecond,
  4. int? microsecond,
])

Change minute of this date

set second if you want to change it as well, to skip an change other optional field set it as null set millisecond if you want to change it as well, to skip an change other optional field set it as null set microsecond if you want to change it as well

Implementation

DateTime setMinute(
  int minute, [
  int? second,
  int? millisecond,
  int? microsecond,
]) =>
    DateTime(
      year,
      month,
      day,
      hour,
      minute,
      second ?? this.second,
      millisecond ?? this.millisecond,
      microsecond ?? this.microsecond,
    );