Pascal Welsch

Results 163 comments of Pascal Welsch
trafficstars

### Comparison to extensions At first glance, there is not much difference in syntax compared to extensions: ```dart final interpolated = json"{$name: $value}"; final withExtension = "{$name: $value}".json; ``` The...

### Possible use case DateFormat While it isn't shorter, it could be a typesafe way to construct a `DateFormat`. ```dart final DateFormat dateFormat = DateFormat("h:mm a"); final DateFormat dateFormatInterpolated =...

My current workaround ```dart class MySheetPage extends SheetPage { MySheetPage({ required Widget child, }) : super( child: Listener( behavior: HitTestBehavior.translucent, onPointerSignal: (signal) { if (signal is PointerScrollEvent) { GestureBinding.instance.pointerSignalResolver.register(signal, (PointerSignalEvent...