copyWith method

Sampler copyWith({
  1. FilterType? filter,
  2. WrapType? wrap,
  3. bool? vflip,
  4. bool? srgb,
  5. String? internal,
})

Builds a copy of a Sampler

  • filter: Filter type
  • wrap: Wrap type
  • vflip: Vertical flip
  • srgb: Srgb color space

Implementation

Sampler copyWith({
  FilterType? filter,
  WrapType? wrap,
  bool? vflip,
  bool? srgb,
  String? internal,
}) {
  return Sampler(
    filter: filter ?? this.filter,
    wrap: wrap ?? this.wrap,
    vflip: vflip ?? this.vflip,
    srgb: srgb ?? this.srgb,
    internal: internal ?? this.internal,
  );
}