copyWithCall property

String get copyWithCall

Implementation

String get copyWithCall {
  final result = StringBuffer();
  result.writeln();
  if(standardRootMapType != null) {
    result.write("items: items ?? this.items");
  }
  _iterate(
    include: includeAllVars,
    visit: (identifier, kind, isLast, includeKind) {
      result.write("$identifier: $identifier ?? this.$identifier,");
      result.writeln();
  });

  if(withFlutterState) {
    result.writeln("flutterState: this.flutterStateGuaranteed,");
  }
  _addBreadcrumb(result, AFSourceTemplate.insertCopyWithCallInsertion);
  return result.toString();
}