Prepare migration to Dart M3.
Fix build behaviour.
Update dependencies and README.