FiscalYearConfig class
Configuration for fiscal year calculations.
- Annotations
-
- @immutable
Constructors
- FiscalYearConfig({int startMonth = 1, int startDay = 1, int yearOffset = 0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDay → int
-
The day when the fiscal year starts (1-31).
final
- startMonth → int
-
The month when the fiscal year starts (1-12).
final
- yearOffset → int
-
Offset to add to the fiscal year number.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- australia → const FiscalYearConfig
- Creates a config for Australian fiscal year (starts July 1).
- india → const FiscalYearConfig
- Creates a config for Indian fiscal year (starts April 1).
- japan → const FiscalYearConfig
- Creates a config for Japanese fiscal year (starts April 1).
- ukTax → const FiscalYearConfig
- Creates a config for UK government fiscal year (starts April 6).
- usGovernment → const FiscalYearConfig
- Creates a config for US government fiscal year (starts October 1). The fiscal year is labeled by the ending year (FY2024 = Oct 2023 - Sep 2024).