Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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
                ));
 }