NepaliCalendarDatePicker class
Show a Nepali date picker in a dialog.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NepaliCalendarDatePicker
Constructors
-
NepaliCalendarDatePicker({Key? key, required NepaliDateTime initialDate, required NepaliDateTime firstDate, required NepaliDateTime lastDate, NepaliDateTime? currentDate, required ValueChanged<
NepaliDateTime> onDateChanged, ValueChanged<NepaliDateTime> ? onDisplayedMonthChanged, DatePickerMode initialCalendarMode = DatePickerMode.day, SelectableDayPredicate? selectableDayPredicate, BoxDecoration? selectedDayDecoration, BoxDecoration? todayDecoration, Widget dayBuilder(NepaliDateTime)?}) -
Return a widget that shows a Nepali date picker.
The
initialDate
is the initially selected date for the picker. ThefirstDate
is the first allowable date in the picker. ThelastDate
is the last allowable date in the picker. ThecurrentDate
is the current date for the picker. TheonDateChanged
is the callback called when a new date is selected. TheonDisplayedMonthChanged
is the callback called when the month displayed in the picker changes. TheinitialCalendarMode
is the initial DatePickerMode of the picker.
Properties
- currentDate → NepaliDateTime
-
The current date for the picker.
final
- dayBuilder → Widget Function(NepaliDateTime)?
-
Function to provide full control over the day widget.
final
- firstDate → NepaliDateTime
-
The first allowable date in the picker.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialCalendarMode → DatePickerMode
-
The initial DatePickerMode of the picker.
final
- initialDate → NepaliDateTime
-
The initially selected date for the picker.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastDate → NepaliDateTime
-
The last allowable date in the picker.
final
-
onDateChanged
→ ValueChanged<
NepaliDateTime> -
The callback called when a new date is selected.
final
-
onDisplayedMonthChanged
→ ValueChanged<
NepaliDateTime> ? -
The callback called when the month displayed in the picker changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectableDayPredicate → SelectableDayPredicate?
-
Function to provide the logic to disable the day.
final
- selectedDayDecoration → BoxDecoration?
-
Decoration for the selected day.
final
- todayDecoration → BoxDecoration?
-
Decoration for the today day.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< NepaliCalendarDatePicker> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited