withBuddhistYear method

Hora withBuddhistYear(
  1. int beYear
)

Creates a new Hora with the specified Buddhist Era year.

final h = Hora.now().withBuddhistYear(2566);
print(h.year); // 2023

Implementation

Hora withBuddhistYear(int beYear) => copyWith(year: beYear - 543);