Error map

type 'Null' is not a subtype of type 'String' Dart: type 'Null' is not a subtype of type 'String' in type cast

Flutter / Dart · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

type 'Null' is not a subtype of type 'String' — Dart: type 'Null' is not a subtype of type 'String' in type cast (Flutter / Dart)type 'Null'…Null check operator used on a null value — Dart/Flutter: Null check operator used on a null value (Flutter / Dart)Null check operator…LateInitializationError: Field has not been initialized — Dart: LateInitializationError: Field 'controller' has not been initialized (Flutter / Dart)LateInitializationE…Non-nullable instance field must be initialized — Dart: Non-nullable instance field 'name' must be initialized. Try adding an initializer expression, or a generative constructor that initializes it, or mark it 'late' (Flutter / Dart)Non-nullable instan…type '_InternalLinkedHashMap' is not a subtype of type 'List<dynamic>' — Dart: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast (Flutter / Dart)type '_InternalLink…Bad state: No element — Dart: Bad state: No element — .first, .last or .single on an empty list (Flutter / Dart)Bad state: No eleme…RangeError (index): Invalid value — Dart: RangeError (index): Invalid value: Valid value range is empty: 0 (Flutter / Dart)RangeError (index):…FormatException: Unexpected character — Dart: FormatException: Unexpected character (at character 1) <!DOCTYPE html> — jsonDecode of an HTML page (Flutter / Dart)FormatException: Un…The property/method can't be unconditionally accessed because the receiver can be null — Dart: The property 'length' can't be unconditionally accessed because the receiver can be 'null' (Flutter / Dart)The property/method…The named parameter is required, but there's no corresponding argument — Dart: The named parameter 'key' is required, but there's no corresponding argument (Flutter / Dart)The named parameter…A RenderFlex overflowed — Flutter: A RenderFlex overflowed by x pixels on the right/bottom (Flutter / Dart)A RenderFlex overfl…setState() called after dispose() — Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted) (Flutter / Dart)setState() called a…TS2322 — TS2322: Type 'X' is not assignable to type 'Y' (TypeScript)TS2322The argument type can't be assigned to the parameter type — Dart: The argument type 'String?' can't be assigned to the parameter type 'String' (Flutter / Dart)The argument type c…The getter/method isn't defined for the type — Dart: The getter 'name' isn't defined for the type 'User' / The method 'foo' isn't defined for the class (Flutter / Dart)The getter/method i…Error: Couldn't resolve the package — Dart: Error: Couldn't resolve the package 'x' in 'package:x/x.dart' (Flutter / Dart)Error: Couldn't res…Illegal argument in isolate message: object is unsendable — Dart: Invalid argument(s): Illegal argument in isolate message: object is unsendable - Library:'dart:async' Class: _Future@4048458 (Flutter / Dart)Illegal argument in…Bad state: Stream has already been listened to — Dart: Bad state: Stream has already been listened to (Flutter / Dart)Bad state: Stream h…SocketException: Failed host lookup — Flutter: Unhandled Exception: SocketException: Failed host lookup: 'api.example.com' (OS Error: No address associated with hostname, errno = 7) (Flutter / Dart)SocketException: Fa…Cleartext HTTP traffic not permitted — Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted (Flutter / Dart)Cleartext HTTP traf…version solving failed (pub get) — Dart pub: Because app depends on intl ^0.19.0 and flutter_localizations from sdk depends on intl 0.18.1, version solving failed (Flutter / Dart)version solving fai…

Directly related (9)

Null check operator used on a null valueFlutter / Dart

Dart/Flutter: Null check operator used on a null value

The ! operator was applied to a variable that was null at runtime.

LateInitializationError: Field has not been initializedFlutter / Dart

Dart: LateInitializationError: Field 'controller' has not been initialized

A `late` variable was read before it was assigned.

Non-nullable instance field must be initializedFlutter / Dart

Dart: Non-nullable instance field 'name' must be initialized. Try adding an initializer expression, or a generative constructor that initializes it, or mark it 'late'

With null safety every non-nullable field needs a value by the end of construction.

type '_InternalLinkedHashMap' is not a subtype of type 'List<dynamic>'Flutter / Dart

Dart: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast

JSON decoded to a Map but your code expected a List (or the other way round).

Bad state: No elementFlutter / Dart

Dart: Bad state: No element — .first, .last or .single on an empty list

You called `.first`, `.last`, `.single` or `.reduce` on an empty collection.

RangeError (index): Invalid valueFlutter / Dart

Dart: RangeError (index): Invalid value: Valid value range is empty: 0

A list or string was indexed outside its bounds, often an empty list or an off-by-one in `itemBuilder`.

FormatException: Unexpected characterFlutter / Dart

Dart: FormatException: Unexpected character (at character 1) <!DOCTYPE html> — jsonDecode of an HTML page

`jsonDecode` received something that is not JSON, commonly an HTML error page, an empty string, or a plain-text message.

The property/method can't be unconditionally accessed because the receiver can be nullFlutter / Dart

Dart: The property 'length' can't be unconditionally accessed because the receiver can be 'null'

With null safety you used `.` on a nullable value; Dart requires a null check first.

The named parameter is required, but there's no corresponding argumentFlutter / Dart

Dart: The named parameter 'key' is required, but there's no corresponding argument

A constructor or function marked `required` for a parameter was called without it.

Two steps away (11)

A RenderFlex overflowedFlutter / Dart

Flutter: A RenderFlex overflowed by x pixels on the right/bottom

A Row or Column’s children need more space than available, so Flutter draws the yellow-black overflow stripes.

setState() called after dispose()Flutter / Dart

Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted)

An async callback (network, timer, stream) finished after the widget was removed and then called setState.

TS2322TypeScript

TS2322: Type 'X' is not assignable to type 'Y'

You assigned a value whose type doesn’t match the declared type of the variable, property or return value.

The argument type can't be assigned to the parameter typeFlutter / Dart

Dart: The argument type 'String?' can't be assigned to the parameter type 'String'

You passed a value whose type does not match what the function parameter requires.

The getter/method isn't defined for the typeFlutter / Dart

Dart: The getter 'name' isn't defined for the type 'User' / The method 'foo' isn't defined for the class

The analyzer cannot find that property or method on the object's static type.

Error: Couldn't resolve the packageFlutter / Dart

Dart: Error: Couldn't resolve the package 'x' in 'package:x/x.dart'

Code imports a package that is not in `pubspec.yaml` or `pub get` has not been run since adding it.

Illegal argument in isolate message: object is unsendableFlutter / Dart

Dart: Invalid argument(s): Illegal argument in isolate message: object is unsendable - Library:'dart:async' Class: _Future@4048458

You tried to send an object (closure, Future, socket, platform object) to another isolate that cannot be copied.

Bad state: Stream has already been listened toFlutter / Dart

Dart: Bad state: Stream has already been listened to

A single-subscription stream was listened to twice, for instance by two `StreamBuilder`s or after a rebuild.

SocketException: Failed host lookupFlutter / Dart

Flutter: Unhandled Exception: SocketException: Failed host lookup: 'api.example.com' (OS Error: No address associated with hostname, errno = 7)

The app could not resolve or reach the server: no internet, wrong host name, DNS failure, or missing network permission.

Cleartext HTTP traffic not permittedFlutter / Dart

Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted

Android 9+ blocks plain `http://` requests by default; the app must use HTTPS or explicitly allow cleartext for that host.

version solving failed (pub get)Flutter / Dart

Dart pub: Because app depends on intl ^0.19.0 and flutter_localizations from sdk depends on intl 0.18.1, version solving failed

`flutter pub get` cannot find a set of package versions that satisfy every dependency's constraints.