getDouble static method

Future<double?> getDouble(
  1. BuildContext context, {
  2. double? value,
  3. Future<ActionResult> onConfirm(
    1. double? result
    )?,
  4. String? title,
  5. String? description,
  6. TextInputType? textInputType,
})

Implementation

static Future<double?> getDouble(
  BuildContext context, {
  double? value,
  Future<ActionResult> Function(double? result)? onConfirm,
  String? title,
  String? description,
  TextInputType? textInputType,
}) async {
  return await showDialog<double?>(
    context: context,
    builder: (context) {
      return ValuePicker<double?>._(
        value: value,
        onConfirm: onConfirm,
        textInputType: textInputType,
        title: title,
        description: description,
      );
    },
  );
}