DatePicker class

A date picker with calendar popup.

final date = ref<DateTime?>(null);

DatePicker(
  value: date,
  placeholder: 'Select a date',
)
Inheritance

Constructors

DatePicker({Object? key, Ref<DateTime?>? value, String? placeholder, String format = 'MMM d, yyyy', DateTime? minDate, DateTime? maxDate, bool disabled = false, void onSelect(DateTime)?})

Properties

css String?
Component-level CSS styles.
no setterinherited
disabled bool
final
format String
final
hashCode int
The hash code for this object.
no setterinherited
isDirty bool
Whether this component needs rebuild.
no setterinherited
isMounted bool
Whether this component is mounted.
no setterinherited
key Object?
Unique identifier for this component within its parent.
finalinherited
maxDate DateTime?
final
minDate DateTime?
final
mounted bool
Whether this component is mounted (alias for isMounted).
no setterinherited
onNeedRebuild RebuildCallback?
Sets the rebuild callback.
no getterinherited
onSelect → void Function(DateTime)?
final
placeholder String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeId String
Unique identifier for CSS scoping.
no setterinherited
styleSheet Map<String, Style>
Component-level scoped styles using typed records.
no setterinherited
value Ref<DateTime?>?
final

Methods

build() Component
Builds the component's content.
override
clearDirty() → void
Clears the dirty flag.
inherited
layout() Component?
The layout wrapper for this component.
inherited
markDirty() → void
Marks this component as needing rebuild.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMount() → void
Called when mounted to the tree.
inherited
onUnmount() → void
Called before removal from tree.
inherited
registerEffect(CleanupFn? effectFn()) → void
Registers an effect disposed on unmount.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited