inputWithValidation method

String inputWithValidation(
  1. String? message, {
  2. required String? validator(
    1. String
    ),
  3. Object? defaultValue,
})

Implementation

String inputWithValidation(
  String? message, {
  required String? Function(String) validator,
  Object? defaultValue,
}) =>
    actor.inputWithValidation(
      prompt: message ?? 'Input:',
      validator: validator,
      defaultValue: defaultValue,
    );