enabled property

bool enabled
final

Controls the range selector’s state whether it is disabled or enabled.

Defaults to true.

This snippet shows how to create disable state SfRangeSelector.

SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);

SfRangeSelector(
    min: 0.0,
    max: 10.0,
    initialValues: _initialValues,
    enabled: false,
    child: Container(
        height: 200,
        color: Colors.green[100],
    ),
)

Implementation

final bool enabled;