internal GalleryOptions copyWith( ThemeMode?themeMode = null, GalleryTextScaleValue textScaleFactor = null, GalleryVisualDensityValue visualDensity = null, TextDirection?textDirection = null, float?timeDilation = null, RuntimePlatform?platform = null, bool?showPerformanceOverlay = null, bool?showRasterCacheImagesCheckerboard = null, bool?showOffscreenLayersCheckerboard = null ) { return(new GalleryOptions( themeMode: themeMode ?? this.themeMode, textScaleFactor: textScaleFactor ?? this.textScaleFactor, visualDensity: visualDensity ?? this.visualDensity, textDirection: textDirection ?? this.textDirection, timeDilation: timeDilation ?? this.timeDilation, platform: platform ?? this.platform, showPerformanceOverlay: showPerformanceOverlay ?? this.showPerformanceOverlay, showOffscreenLayersCheckerboard: showOffscreenLayersCheckerboard ?? this.showOffscreenLayersCheckerboard, showRasterCacheImagesCheckerboard: showRasterCacheImagesCheckerboard ?? this.showRasterCacheImagesCheckerboard )); }
public GalleryOptions( GalleryTheme theme = null, GalleryTextScaleValue textScaleFactor = null, float timeDilation = 1.0f, RuntimePlatform?platform = null, bool showOffscreenLayersCheckerboard = false, bool showRasterCacheImagesCheckerboard = false, bool showPerformanceOverlay = false ) { D.assert(theme != null); D.assert(textScaleFactor != null); this.theme = theme; this.textScaleFactor = textScaleFactor; this.timeDilation = timeDilation; this.platform = platform ?? Application.platform; this.showOffscreenLayersCheckerboard = showOffscreenLayersCheckerboard; this.showRasterCacheImagesCheckerboard = showRasterCacheImagesCheckerboard; this.showPerformanceOverlay = showPerformanceOverlay; }
public GalleryOptions copyWith( GalleryTheme theme = null, GalleryTextScaleValue textScaleFactor = null, float?timeDilation = null, RuntimePlatform?platform = null, bool?showPerformanceOverlay = null, bool?showRasterCacheImagesCheckerboard = null, bool?showOffscreenLayersCheckerboard = null ) { return(new GalleryOptions( theme: theme ?? this.theme, textScaleFactor: textScaleFactor ?? this.textScaleFactor, timeDilation: timeDilation ?? this.timeDilation, platform: platform ?? this.platform, showPerformanceOverlay: showPerformanceOverlay ?? this.showPerformanceOverlay, showOffscreenLayersCheckerboard: showOffscreenLayersCheckerboard ?? this.showOffscreenLayersCheckerboard, showRasterCacheImagesCheckerboard: showRasterCacheImagesCheckerboard ?? this.showRasterCacheImagesCheckerboard )); }
public GalleryOptions( ThemeMode?themeMode = null, GalleryTextScaleValue textScaleFactor = null, GalleryVisualDensityValue visualDensity = null, TextDirection?textDirection = null, float timeDilation = 1.0f, RuntimePlatform?platform = null, bool showOffscreenLayersCheckerboard = false, bool showRasterCacheImagesCheckerboard = false, bool showPerformanceOverlay = false ) { textDirection = textDirection ?? TextDirection.ltr; this.themeMode = themeMode; this.textScaleFactor = textScaleFactor; this.visualDensity = visualDensity; this.textDirection = textDirection; this.timeDilation = timeDilation; this.platform = platform; this.showOffscreenLayersCheckerboard = showOffscreenLayersCheckerboard; this.showRasterCacheImagesCheckerboard = showRasterCacheImagesCheckerboard; this.showPerformanceOverlay = showPerformanceOverlay; }