fiscalYear method

int fiscalYear({
  1. int startMonth = 1,
  2. int yearOffset = 0,
})

Gets the fiscal year for this date.

startMonth - The month the fiscal year starts (1-12). yearOffset - Offset to add to the year number.

Implementation

int fiscalYear({int startMonth = 1, int yearOffset = 0}) {
  final config = FiscalYearConfig(
    startMonth: startMonth,
    yearOffset: yearOffset,
  );
  return fiscalYearWithConfig(config);
}