comicSlantInset function

(double, double) comicSlantInset(
  1. BuildContext context
)

How much room the slanted gutter takes from a panel's end and its start: (start, end). A bleeding panel's own band reads it.

Implementation

(double, double) comicSlantInset(BuildContext context) {
  final s = context.dependOnInheritedWidgetOfExactType<_SlantScope>();
  if (s == null) return (0, 0);
  return s.lastPanel ? (s.slant, 0) : (0, s.slant);
}