copyWith method

NmMapLayer copyWith({
  1. NmMapLayerType? type,
  2. bool? isVisible,
  3. double? opacity,
  4. int? count,
})

Copy with.

Implementation

NmMapLayer copyWith({NmMapLayerType? type, bool? isVisible, double? opacity, int? count}) {
  return NmMapLayer(type: type ?? this.type, isVisible: isVisible ?? this.isVisible, opacity: opacity ?? this.opacity, count: count ?? this.count);
}