copyWith method

NmPropertyLayer copyWith({
  1. NmPropertyLayerType? type,
  2. String? title,
  3. String? subtitle,
  4. Map<String, String>? fields,
  5. bool? isExpanded,
})

Copy with.

Implementation

NmPropertyLayer copyWith({NmPropertyLayerType? type, String? title, String? subtitle, Map<String, String>? fields, bool? isExpanded}) {
  return NmPropertyLayer(
    type: type ?? this.type,
    title: title ?? this.title,
    subtitle: subtitle ?? this.subtitle,
    fields: fields ?? this.fields,
    isExpanded: isExpanded ?? this.isExpanded,
  );
}