GitAuthor constructor

GitAuthor({
  1. required String name,
  2. required String email,
  3. DateTime? date,
  4. int? timezoneOffset,
})

Implementation

GitAuthor({
  required this.name,
  required this.email,
  DateTime? date,
  int? timezoneOffset,
}) {
  this.date = date ?? DateTime.now();

  this.timezoneOffset = timezoneOffset ??
      this.date.timeZoneOffset.inHours * 100 +
          (this.date.timeZoneOffset.inMinutes % 60);
}