warning method

String warning(
  1. dynamic method
)

Implementation

String warning(method) {
  return switch (method) {
    'Ignored' => '''

      The following variables will be deleted:
      ${getIgnored(ref).toString().replaceAll(squares, "")}.
      Continue?

        ''',
    'Variable' => '''

      The variable ${ref.read(selectedProvider)} will be deleted. Continue?

      ''',
    'Vars with Missing' => '''

      The following ${getMissing(ref).length} variables will be deleted:
      ${getMissing(ref).toString().replaceAll(squares, "")}.  Continue?

      ''',
    'Obs with Missing' => '''

      There are ${getObsMissing(ref)} rows with missing values that will be
      deleted. Continue?

      ''',
    _ => '''

      This shouldn't happen in warningText

      ''',
  };
}