copyWith method

NativeAvatarStyle copyWith({
  1. double? size,
  2. double? borderRadius,
})

Creates a copy of this avatar style with the given fields replaced.

Implementation

NativeAvatarStyle copyWith({
  double? size,
  double? borderRadius,
}) {
  return NativeAvatarStyle(
    size: size ?? this.size,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}