copyWith method

FlutstrapVisibility copyWith({
  1. Key? key,
  2. Widget? child,
  3. bool? showOnXs,
  4. bool? showOnSm,
  5. bool? showOnMd,
  6. bool? showOnLg,
  7. bool? showOnXl,
  8. bool? showOnXxl,
  9. Widget? fallback,
})

Implementation

FlutstrapVisibility copyWith({
  Key? key,
  Widget? child,
  bool? showOnXs,
  bool? showOnSm,
  bool? showOnMd,
  bool? showOnLg,
  bool? showOnXl,
  bool? showOnXxl,
  Widget? fallback,
}) {
  return FlutstrapVisibility(
    key: key ?? this.key,
    child: child ?? this.child,
    showOnXs: showOnXs ?? this.showOnXs,
    showOnSm: showOnSm ?? this.showOnSm,
    showOnMd: showOnMd ?? this.showOnMd,
    showOnLg: showOnLg ?? this.showOnLg,
    showOnXl: showOnXl ?? this.showOnXl,
    showOnXxl: showOnXxl ?? this.showOnXxl,
    fallback: fallback ?? this.fallback,
  );
}