copyWith method
GalleryOptions
copyWith({
- ThemeMode? themeMode,
- double? textScaleFactor,
- CustomTextDirection? customTextDirection,
- Locale? locale,
- double? timeDilation,
- TargetPlatform? platform,
- 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,
);
}