import 'package: project名/models/モデル名.dart'; import 'package:project名/providers/プロバイダー名.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { group('HogeNotifierのテスト', () { final testNotifier = HogeNotifier() ..state = const HogeData( // ~略 ); test('barメソッド結果', () { final test = testNotifier.concertAnswers(); expect(test, テストしたい値); }); }); }
..state
のところで警告は出る。