toPdfChildAspectRatio method
Gets the child aspect ratio of the SliverGridDelegate.
Implementation
double toPdfChildAspectRatio() {
switch (runtimeType) {
case SliverGridDelegateWithFixedCrossAxisCount:
return (this as SliverGridDelegateWithFixedCrossAxisCount)
.childAspectRatio;
case SliverGridDelegateWithMaxCrossAxisExtent:
return (this as SliverGridDelegateWithMaxCrossAxisExtent)
.childAspectRatio;
default:
throw Exception('Unsupported SliverGridDelegate: $runtimeType');
}
}