このページには広告が含まれる場合があります。
Flutterで効果音(短い音)を鳴らすためのパッケージである「soundpool」ですが、

A Flutter Sound Pool for playing short audio files. Sound tracks are cached in memory and played directly from cache.
2021年5月末にアップデートされたバージョン2.1.0以降は、従来のコンストラクタである
Soundpool();
が非推奨となり、
Soundpool.fromOptions();
となり、音の設定をfromOptionsコンストラクタで設定する仕様に変更となりました。

API docs for the Soundpool.fromOptions constructor from Class Soundpool from the soundpool library, for the Dart programming language.
公式ドキュメントには残念ながら、その旨の記載はありませんでしたが、、
(詳しくは、以下の動画で解説していますので、よろしければご覧下さい)