https://minpro.net/cascade-notation-cannot-be-used-in-await
WebViewController()..setBackgroundColor(Colors.transparent);
ってやったら await
入れろって言われるが、
だからと言って
WebViewController() await ..setBackgroundColor(Colors.transparent);
みたいに書けなかった。自動修正してくれない。
素直に。
final controller = WebViewController(); await controller.setBackgroundColor(Colors.transparent);
とする。