PromptScope constructor

const PromptScope({
  1. required void onDone(
    1. Object? result
    ),
  2. required Widget child,
})

Creates a PromptScope with the given onDone callback and child.

Implementation

const PromptScope({
  required void Function(Object? result) onDone,
  required super.child,
}) : _onDone = onDone;