copyWith method

Tile copyWith({
  1. int? id,
  2. String? source,
  3. int? z,
  4. int? x,
  5. int? y,
  6. Uint8List? bytes,
  7. Value<String?> etag = const Value.absent(),
  8. DateTime? updatedAt,
  9. DateTime? lastAccessed,
})

Implementation

Tile copyWith(
        {int? id,
        String? source,
        int? z,
        int? x,
        int? y,
        Uint8List? bytes,
        Value<String?> etag = const Value.absent(),
        DateTime? updatedAt,
        DateTime? lastAccessed}) =>
    Tile(
      id: id ?? this.id,
      source: source ?? this.source,
      z: z ?? this.z,
      x: x ?? this.x,
      y: y ?? this.y,
      bytes: bytes ?? this.bytes,
      etag: etag.present ? etag.value : this.etag,
      updatedAt: updatedAt ?? this.updatedAt,
      lastAccessed: lastAccessed ?? this.lastAccessed,
    );