JsPromptResponse.prompt constructor Null safety

JsPromptResponse.prompt(
  1. String message,
  2. String defaultValue,
  3. String okLabel,
  4. String cancelLabel
)

Implementation

factory JsPromptResponse.prompt(
  String message,
  String defaultValue,
  String okLabel,
  String cancelLabel,
) {
  return JsPromptResponse._(
    message,
    defaultValue,
    okLabel,
    cancelLabel,
    false,
    null,
    null,
  );
}