This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analyzer: | |
strong-mode: | |
implicit-casts: false | |
implicit-dynamic: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async { | |
var what1 = getFuture(); | |
var what2 = getString(); | |
// what1 is dynamic, what2 is string | |
} | |
getFuture() { | |
return Future.value(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analyzer: | |
strong-mode: | |
implicit-casts: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unhandled Exception: type 'Future<dynamic>' is not a subtype of type 'Future<String>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<dynamic> getFuture() { | |
return Future.value(int); | |
} | |
Future<String> why() { | |
return getFuture(); | |
} | |
void main() async { | |
await why(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type 'MappedListIterable<dynamic, int>' is not a subtype of type 'List<int>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type 'MappedListIterable<dynamic, int>' is not a subtype of type 'List<int>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final List<String> first = ["one", "two"]; | |
final List<int> second = first.map((value) => value.hashCode); | |
print(second); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final List<String> collectionOfStrings = ["one", "two"]; | |
final List<int> collectionOfInts = collectionOfStrings.map((value) => value.hashCode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun handleFailedAttempt() { | |
attempts++ | |
saveFailedAttemptsData() | |
if (attempts >= 5) { | |
if (!timerRunning) { | |
startTimer() | |
} | |
when { | |
attempts == 5 -> resetTime(ATTEMPT_FIVE_TIME) | |
attempts == 6 -> resetTime(ATTEMPT_SIX_TIME) |
NewerOlder