Skip to content
Init is here / May 19 - 23
Back

Flutter - type 'Null' is not a subtype of type 'bool'

  • 0
  • Flutter
  • Android
  • Auth
  • Apple
  • Self Hosted
hey ameen
26 Feb, 2025, 07:49

while calling User user = await _appwrite.account.get(); getting error: E/flutter (15720): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'bool'

Flutter Sdk Version : 3.24.5 Self Hosted Appwrite version : 1.6.0 Appwrite package version: appwrite: ^13.0.0

TL;DR
Developers are encountering an error stating 'type Null is not a subtype of type bool' when calling _appwrite.account.get(). This issue may be due to null safety. Update the Appwrite package version to the latest release to potentially fix the error.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more