newline property

String get newline

String used for newlines (ex "\n").

Implementation

String get newline {
  if (debugGenerators) {
    final List<String> frames = StackTrace.current.toString().split('\n');
    return ' //${frames.firstWhere((String x) => x.contains('_generator.dart'))}\n';
  } else {
    return '\n';
  }
}