quoted_string 0.1.1 quoted_string: ^0.1.1 copied to clipboard
String quoting/unquoting. Provides an extension on String with quote() and unquote() methods.
import 'package:quoted_string/quoted_string.dart';
void main() {
// "Quote (\") and backslash (\\)"
print(r'Quote (") and backslash (\)'.quote());
// Quote (") and backslash (\)
print(r'"Quote (\") and backslash (\\)"'.unquote());
}