diff --git a/packages/dynamite/dynamite/lib/src/helpers/dart_helpers.dart b/packages/dynamite/dynamite/lib/src/helpers/dart_helpers.dart index 54e40aa3fe3..977111da303 100644 --- a/packages/dynamite/dynamite/lib/src/helpers/dart_helpers.dart +++ b/packages/dynamite/dynamite/lib/src/helpers/dart_helpers.dart @@ -23,65 +23,65 @@ String toDartName( } final _dartKeywords = [ + 'abstract', + 'as', 'assert', + 'async', 'break', 'case', 'catch', 'class', 'const', 'continue', + 'covariant', 'default', + 'deferred', 'do', + 'dynamic', 'else', 'enum', + 'export', 'extends', + 'extension', + 'external', + 'factory', 'false', 'final', 'finally', 'for', + 'function', + 'get', + 'hide', 'if', + 'implements', + 'import', 'in', + 'interface', 'is', + 'library', + 'mixin', 'new', 'null', + 'on', + 'operator', + 'part', 'rethrow', 'return', + 'set', + 'show', + 'static', 'super', 'switch', + 'sync', 'this', 'throw', 'true', 'try', + 'typedef', 'var', 'void', 'while', 'with', - 'async', - 'hide', - 'on', - 'show', - 'sync', - 'abstract', - 'as', - 'covariant', - 'deferred', - 'dynamic', - 'export', - 'extension', - 'external', - 'factory', - 'function', - 'get', - 'implements', - 'import', - 'interface', - 'library', - 'mixin', - 'operator', - 'part', - 'set', - 'static', - 'typedef', ]; bool _isNonAlphaNumericString(final String input) => !RegExp(r'^[a-zA-Z0-9]$').hasMatch(input);