Flutterã§mockitoãå©ç¨ãããåä½ãã¹ãã§æ°æéããã£ãã®ã§ã¡ã¢ãã¦ããã¾ãã çºçããissue mockã¯ã©ã¹ãNullã許容ãã¦ãããããmockåããã¯ã©ã¹ã¨åã®æ´åæ§ããªããã¨ã©ã¼ã¨ãªãã Null Safety対å¿ï¼=Null許容ããªãï¼ããã«ã¯ãç¹å¥ãªå¯¾å¿ãå¿ è¦ã¨ãªãã 対象ã®ã³ã¼ã when(mock.auth(email: '[email protected]', password: 'password')) .thenAnswer((_) => Future.value(response)); type 'Null' is not a subtype of type 'Future<ApiResponse>' package:flutter_with_getx/data/repository/auth_repository.dart 9:23 MockAuthRep

{{#tags}}- {{label}}
{{/tags}}