toMap method
Implementation
Map<String, dynamic> toMap() => {
'filePath': this.filePath,
'bytes': this.bytes,
'fitPolicy': this.fitPolicy.toString(),
'fitEachPage': this.fitEachPage,
'enableSwipe': this.enableSwipe,
'swipeHorizontal': this.swipeHorizontal,
'nightMode': this.nightMode,
'autoSpacing': this.autoSpacing,
'pageFling': this.pageFling,
'showScrollbar': this.showScrollbar,
'pageSnap': this.pageSnap,
'defaultPage': this.defaultPage,
'defaultZoomFactor': this.defaultZoomFactor,
'backgroundColor': this.backgroundColor.value,
'password': this.password,
'enableDoubleTap': this.enableDoubleTap,
'minZoom': this.minZoom,
'maxZoom': this.maxZoom,
'enableDefaultScrollHandle': this.enableDefaultScrollHandle,
'spacing': this.spacing,
'hasOnLinkHandle': this.hasOnLinkHandle,
};