isUnquotedFieldChar function

bool isUnquotedFieldChar(
  1. String char
)

Returns true if the character is a valid unquoted field character.

Implementation

bool isUnquotedFieldChar(String char) =>
    RegExp(r'^[a-zA-Z0-9_-]+$').hasMatch(char);