copyWith method

NudgeAppComponentViewState copyWith({
  1. double? height,
  2. double? width,
  3. String? errorMessage,
  4. bool? isViewReady,
  5. String? viewId,
})

Implementation

NudgeAppComponentViewState copyWith({
  double? height,
  double? width,
  String? errorMessage,
  bool? isViewReady,
  String? viewId,
}) {
  return NudgeAppComponentViewState(
    height: height ?? this.height,
    width: width ?? this.width,
    errorMessage: errorMessage ?? this.errorMessage,
    isViewReady: isViewReady ?? this.isViewReady,
    viewId: viewId ?? this.viewId,
  );
}