copyWith method

GalleryOptions copyWith({
  1. ThemeMode? themeMode,
  2. double? textScaleFactor,
  3. CustomTextDirection? customTextDirection,
  4. Locale? locale,
  5. double? timeDilation,
  6. TargetPlatform? platform,
  7. bool? isTestMode,
})

Implementation

GalleryOptions copyWith({
  ThemeMode? themeMode,
  double? textScaleFactor,
  CustomTextDirection? customTextDirection,
  Locale? locale,
  double? timeDilation,
  TargetPlatform? platform,
  bool? isTestMode,
}) {
  return GalleryOptions(
    themeMode: themeMode ?? this.themeMode,
    textScaleFactor: textScaleFactor ?? _textScaleFactor,
    customTextDirection: customTextDirection ?? this.customTextDirection,
    locale: locale ?? this.locale,
    timeDilation: timeDilation ?? this.timeDilation,
    platform: platform ?? this.platform,
    isTestMode: isTestMode ?? this.isTestMode,
  );
}