Olzhas Suleimen
Olzhas Suleimen
[Vala Parameter Directions](https://wiki.gnome.org/Projects/Vala/Tutorial#Parameter_Directions)
I'm trying to work on variadic arguments, and each run requires compilation. I'm looking to implement it myself. There are cons, like keeping it updated, but I don't think the...
Can you provide an example with blocks? Use [import](https://jinja.palletsprojects.com/en/3.1.x/templates/#import).
The `page.jinja` template is correct and expected to work. It's a bug, working on it. ```jinja {% extends "base.jinja" %} {% import 'component.jinja' as components %} {% block content %}...
Some developers (me too) use `final` only for class and top-level library fields, not for function variables.
@Wdestroier writing extra keyword is no for me; `:=` seems more usable (thanks to Go and Python). But what about `late final` variables? Some developers use `final` for arguments. By...
+1. Less things to patch to run the `analyzer` on the web. I also like `analyzer`'s FS alternative with `Resource` and `ResourceProvider`.
`dart run build_runner build`. I was migrating the Zap package and builder from `dart:html` to the `web` package and encountered type cast errors while resolving extension types. I added some...
You can also use `Uri.dataFromBytes`: ```dart void downloadData(Uint8List data, {required String filename}) { web.HTMLAnchorElement() ..href = UriData.fromBytes(data, mimeType: 'text/plain').toString() ..setAttribute('download', filename) ..click() ..remove(); } ``` Is using `text/plain` format and...
Using `dart:js_interop_unsafe`: ```dart import 'dart:js_interop'; import 'dart:js_interop_unsafe'; import 'package:web/web.dart'; void main() { var container = document.querySelector('body') as Element; container.callMethodVarArgs('replaceChildren'.toJS, [/* ... */]); } ``` Without: ```dart import 'dart:js_interop'; import 'package:web/web.dart';...