Flutterをバージョンアップしたら以下のように怒られた。
class RTCDataChannelNative extends RTCDataChannel { ^^^^^^^^^^^^^^^^^^^^ ../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:79:12: Context: 'RTCDataChannel.bufferedAmount' is defined here. int? get bufferedAmount; ^^^^^^^^^^^^^^ ../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:74:12: Context: 'RTCDataChannel.id' is defined here. int? get id; ^^
Flutterのバージョンとプラグインのバージョンが互換性がないよってことらしいです。(忘れると結構ハマる)
以下のコマンドを実施する。
flutter pub upgrade
以下参考
また、このエラーに引っかかりがちな人は初学者だと思うのでFlutterのバージョンを複数管理する仕組みとしてFVMの導入も合わせて検討ください。