toPdfCrossAxisSpacing method
Gets the cross axis spacing of the SliverGridDelegate.
Implementation
double toPdfCrossAxisSpacing() {
switch (runtimeType) {
case SliverGridDelegateWithFixedCrossAxisCount:
return (this as SliverGridDelegateWithFixedCrossAxisCount)
.crossAxisSpacing;
case SliverGridDelegateWithMaxCrossAxisExtent:
return (this as SliverGridDelegateWithMaxCrossAxisExtent)
.crossAxisSpacing;
default:
throw Exception('Unsupported SliverGridDelegate: $runtimeType');
}
}