copyWith method

SkeletonGenerationContext copyWith({
  1. SkeletonConfig? config,
  2. Map<Type, Size>? sizeCache,
})

Creates a copy with optional overrides.

Implementation

SkeletonGenerationContext copyWith({
  SkeletonConfig? config,
  Map<Type, Size>? sizeCache,
}) {
  return SkeletonGenerationContext(
    config: config ?? this.config,
    sizeCache: sizeCache ?? this.sizeCache,
  );
}