Repository: flutter
Issue: Type error while opening a Flutter devtools
Labels: c: crash,framework,f: inspector,a: null-safety,P2,team-framework,triaged-framework

Type error is thrown while opening Flutter DevTools

```sh
════════ Exception caught by Flutter framework ═════════════════════════════════
The following _TypeError was thrown during a service extension callback for "ext.flutter.inspector.getRootWidgetSummaryTree":
type 'Null' is not a subtype of type 'String' of 'function result'

When the exception was thrown, this was the stack
#0      _Location.file (package:flutter/src/widgets/widget_inspector.dart)
package:flutter/…/widgets/widget_inspector.dart:1
#1      _Location.toJsonMap
package:flutter/…/widgets/widget_inspector.dart:2844
#2      _Location.toJsonMap.<anonymous closure>
package:flutter/…/widgets/widget_inspector.dart:2853
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:412:31)
#4      ListIterator.moveNext (dart:_internal/iterable.dart:341:26)
...
════════════════════════════════════════════════════════════════════════════════
```

## Steps to Reproduce

1. Open any flutter project.
2. Work a little(change some values, do hot reload a few times)
3. Open Flutter DevTools

**Expected results:** DevTools opened in chrome

**Actual results:** The above error in console

<details>
  <summary>flutter run -v</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```sh
flutter run -v
[ +237 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +818 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] f4abaa0735eba4dfd8f33f73363911d63931fe03
[   +1 ms] executing: [C:\src\flutter/] git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[ +111 ms] Exit code 0 from: git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[   +1 ms] 2.2.3
[  +14 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +107 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[   +1 ms] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +94 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[ +291 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +93 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[ +157 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +178 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +92 ms] List of devices attached
           K2AAGF000218AW8        device product:WW_X01BD model:ASUS_X01BDA device:ASUS_X01BD_2 transport_id:2
[  +14 ms] C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell getprop
[ +146 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +44 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +331 ms] Skipping pub get: version match.
[ +280 ms] Generating
C:\Users\darshan\Documents\path_to_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +135 ms] ro.hardware = qcom
[  +95 ms] Initializing file store
[  +17 ms] Skipping target: gen_localizations
[  +13 ms] complete
[  +11 ms] Launching lib\main.dart on Phone in debug mode...
[  +12 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\darshan\AppData\Local\Temp\flutter_tools.33d6c6b2\flutter_tool.516dea9a\app.dill --packages
C:\Users\darshan\Documents\path_to_app\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +31 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\build-tools\30.0.3\aapt dump xmltree
C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +34 ms] Exit code 0 from: C:\Users\darshan\AppData\Local\Android\Sdk\build-tools\30.0.3\aapt dump xmltree
C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.company.app" (Raw: "com.company.app")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="app_id" (Raw: "app_id")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.company.app.app_id.MainActivity" (Raw:
                   "com.company.app.app_id.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") 
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +33 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell -x logcat -v time -t 1
[  +42 ms] <- compile package:app_id/main.dart
[ +165 ms] --------- beginning of main
                    07-19 16:15:20.822 E/nightwatch-target( 3417): lmkd signal waiters
[  +21 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +120 ms] Android Debug Bridge version 1.0.41
                    Version 31.0.2-7242960
                    Installed as C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +4 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +44 ms] Building APK
[  +41 ms] Running Gradle task 'assembleDebug'...
[  +11 ms] Using gradle from C:\Users\darshan\Documents\path_to_app\android\gradlew.bat.
[  +31 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +305 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "11.0.8" 2020-07-14
           OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
           OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6842174, mixed mode)
[   +5 ms] executing: [C:\Users\darshan\Documents\path_to_app\android/]
C:\Users\darshan\Documents\path_to_app\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=C:\Users\darshan\Documents\path_to_app\lib\main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+5946 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [ +175 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +371 ms] [ +909 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] f4abaa0735eba4dfd8f33f73363911d63931fe03
[   +1 ms] [   +1 ms] executing: [C:\src\flutter/] git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[  +97 ms] [ +109 ms] Exit code 0 from: git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[   +2 ms] [        ] 2.2.3
[   +1 ms] [  +15 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +191 ms] [  +94 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[   +1 ms] [        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[   +1 ms] [  +76 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[ +199 ms] [ +192 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[ +203 ms] [ +134 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[  +98 ms] [ +121 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +180 ms] [ +256 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[  +94 ms] [   +5 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[   +1 ms] [  +74 ms] Initializing file store
[  +66 ms] [  +44 ms] Skipping target: gen_localizations
[   +5 ms] [  +18 ms] kernel_snapshot: Starting due to {}
[   +3 ms] [  +29 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies
-DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform    
--packages C:\Users\darshan\Documents\path_to_app\.dart_tool\package_config.json --output-dill
C:\Users\darshan\Documents\path_to_app\.dart_tool\flutter_build\28b6a4c8497a90ab572d8367301f65fb\app.dill --depfile
C:\Users\darshan\Documents\path_to_app\.dart_tool\flutter_build\28b6a4c8497a90ab572d8367301f65fb\kernel_snapshot.d
package:app_id/main.dart
[+20395 ms] [+20378 ms] kernel_snapshot: Complete
[+1502 ms] [+1523 ms] debug_android_application: Starting due to {}
[ +294 ms] [ +302 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see
#56466.
[ +105 ms] [  +33 ms] debug_android_application: Complete
[+1299 ms] [+1308 ms] Persisting file store
[        ] [  +27 ms] Done persisting file store
[        ] [  +23 ms] build succeeded.
[        ] [  +32 ms] "flutter assemble" took 24,092ms.
[ +318 ms] [ +280 ms] ensureAnalyticsSent: 271ms
[   +1 ms] [   +3 ms] Running shutdown hooks
[  +30 ms] [        ] Shutdown hooks complete
[   +1 ms] [   +3 ms] exiting with code 0
[ +344 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +87 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[ +104 ms] > Task :app:cleanMergeDebugAssets
[   +3 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:compileDebugShaders NO-SOURCE
[   +1 ms] > Task :app:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugAssets
[ +593 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[  +90 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +2 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[   +1 ms] > Task :app:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :app:processDebugMainManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +95 ms] > Task :app:processDebugResources UP-TO-DATE
[ +102 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +6 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[   +4 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +2 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[ +101 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +7 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[  +84 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[  +84 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[   +2 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ +100 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[   +3 ms] > Task :app:mergeDexDebug UP-TO-DATE
[   +6 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ +133 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[   +2 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[  +96 ms] > Task :app:validateSigningDebug UP-TO-DATE
[+1160 ms] > Task :app:compressDebugAssets
[+2302 ms] > Task :app:packageDebug
[ +297 ms] > Task :app:assembleDebug
[  +64 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[   +1 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[   +1 ms] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[   +3 ms] BUILD SUCCESSFUL in 37s
[   +2 ms] 32 actionable tasks: 7 executed, 25 up-to-date
[ +605 ms] Running Gradle task 'assembleDebug'... (completed in 38.3s)
[ +180 ms] calculateSha: LocalDirectory: 'C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk'/app.apk
[+1394 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[   +9 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\build-tools\30.0.3\aapt dump xmltree
C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +50 ms] Exit code 0 from: C:\Users\darshan\AppData\Local\Android\Sdk\build-tools\30.0.3\aapt dump xmltree
C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.company.app" (Raw: "com.company.app")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="app_id" (Raw: "app_id")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.company.app.app_id.MainActivity" (Raw:
                   "com.company.app.app_id.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") 
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +17 ms] Stopping app 'app.apk' on Phone.
[   +2 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell am force-stop
com.company.app
[ +142 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell pm list packages
com.company.app
[ +186 ms] package:com.company.app
[   +9 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell cat
/data/local/tmp/sky.com.company.app.sha1
[ +140 ms] 4ed7494a72c9bd514148cc7ff9a4c47c2654695e
[   +5 ms] Installing APK.
[   +7 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +2 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 install -t -r
C:\Users\darshan\Documents\path_to_app\build\app\outputs\flutter-apk\app.apk
[+10725 ms] Performing Streamed Install
                     Success
[   +4 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 10.7s)
[   +8 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell echo -n
c353bd9ec1d1ae1a7bc476b4fa9f2ea9685b1e26 > /data/local/tmp/sky.com.company.app.sha1
[ +117 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell -x logcat -v time -t 1
[ +170 ms] --------- beginning of main
                    07-19 16:16:12.985 D/CompatibilityInfo( 2086): applicationScale - 1.0
[  +26 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true 
--ez verify-entry-points true com.company.app/com.company.app.app_id.MainActivity
[ +190 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.company.app/.app_id.MainActivity (has
extras) }
[   +5 ms] Waiting for observatory port to be available...
[+1215 ms] Observatory URL on device: http://127.0.0.1:42483/Cpn9RNcAtN0=/
[   +6 ms] executing: C:\Users\darshan\AppData\Local\Android\Sdk\platform-tools\adb.exe -s K2AAGF000218AW8 forward tcp:0 tcp:42483
[  +86 ms] 54139
[   +3 ms] Forwarded host port 54139 to device port 42483 for Observatory
[  +28 ms] Caching compiled dill
[ +111 ms] Connecting to service protocol: http://127.0.0.1:54139/Cpn9RNcAtN0=/
[ +532 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:54139/Cpn9RNcAtN0=/.
[ +258 ms] DDS is listening at http://127.0.0.1:54144/i6zi7dfSrSA=/.
[ +133 ms] Successfully connected to service protocol: http://127.0.0.1:54139/Cpn9RNcAtN0=/
[ +425 ms] DevFS: Creating new filesystem on the device (null)
[  +79 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.company.app/code_cache/app_idUCLCUF/app_id/)
[  +16 ms] Updating assets
[ +295 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[  +12 ms] Syncing files to device Phone...
[   +6 ms] <- reset
[   +1 ms] Compiling dart to kernel with 0 updated files
[   +7 ms] <- recompile package:app_id/main.dart 9464d953-7fbe-478a-9d61-4dd83284d0d3
[   +1 ms] <- 9464d953-7fbe-478a-9d61-4dd83284d0d3
[ +351 ms] Activating Dart DevTools...
[ +362 ms] Updating files.
[   +2 ms] DevFS: Sync finished
[   +9 ms] Syncing files to device Phone... (completed in 736ms)
[   +4 ms] Synced 0.0MB.
[   +7 ms] <- accept
[  +58 ms] Connected to _flutterView/0x76b2f75020.
[  +15 ms] Flutter run key commands.
[  +12 ms] r Hot reload. 
[   +6 ms] R Hot restart.
[   +5 ms] h Repeat this help message.
[  +13 ms] d Detach (terminate "flutter run" but leave application running).
[   +6 ms] c Clear the screen
[  +12 ms] q Quit (terminate the application on the device).
[   +2 ms]  Running with sound null safety 
[   +2 ms] An Observatory debugger and profiler on Phone is available at: http://127.0.0.1:54144/i6zi7dfSrSA=/
[+5626 ms] Activating Dart DevTools... (completed in 6.1s)
[+1378 ms] The Flutter DevTools debugger and profiler on Phone is available at:
                    http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A54144%2Fi6zi7dfSrSA%3D%2F
[+104578 ms] Skipping target: gen_localizations
[   +7 ms] complete
[   +8 ms] Performing hot reload...
[ +321 ms] Scanned through 552 files in 289ms
[   +3 ms] Syncing files to device Phone...
[   +2 ms] Compiling dart to kernel with 1 updated files
[   +5 ms] <- recompile package:app_id/main.dart 99d3e1e8-a157-48f7-8cf2-23f648cb8228
[   +1 ms] package:app_id/main.dart
[   +1 ms] <- 99d3e1e8-a157-48f7-8cf2-23f648cb8228
[ +233 ms] Updating files.
[ +265 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Phone... (completed in 509ms)
[        ] Synced 0.0MB.
[ +525 ms] <- accept
[   +5 ms] reloaded 1 of 810 libraries
[  +49 ms] Reassembling application
[ +604 ms] Hot reload performed in 1,991ms.
[   +4 ms] Performing hot reload... (completed in 2,024ms)
[   +3 ms] Reloaded 1 of 810 libraries in 2,053ms.
[+64641 ms] Skipping target: gen_localizations
[   +5 ms] complete
[   +2 ms] Performing hot reload...
[ +140 ms] Scanned through 552 files in 121ms
[   +1 ms] Syncing files to device Phone...
[   +1 ms] Compiling dart to kernel with 1 updated files
[   +3 ms] <- recompile package:app_id/main.dart 2f2a1f2e-13c0-4332-a4c8-d4e3b724cffe
[   +1 ms] package:app_id/main.dart
[   +1 ms] <- 2f2a1f2e-13c0-4332-a4c8-d4e3b724cffe
[  +68 ms] Updating files.
[  +51 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Phone... (completed in 127ms)
[        ] Synced 0.0MB.
[ +402 ms] <- accept
[   +3 ms] reloaded 1 of 810 libraries
[  +58 ms] Reassembling application
[ +547 ms] Hot reload performed in 1,266ms.
[   +4 ms] Performing hot reload... (completed in 1,284ms)
[   +3 ms] Reloaded 1 of 810 libraries in 1,301ms.
[+29859 ms] Skipping target: gen_localizations
[   +8 ms] complete
[   +3 ms] Performing hot reload...
[ +208 ms] Scanned through 552 files in 189ms
[   +4 ms] Syncing files to device Phone...
[   +2 ms] Compiling dart to kernel with 1 updated files
[   +6 ms] <- recompile package:app_id/main.dart 22aad4b0-9231-4330-9b45-1a6396cdacc4
[   +2 ms] package:app_id/main.dart
[   +2 ms] <- 22aad4b0-9231-4330-9b45-1a6396cdacc4
[ +154 ms] Updating files.
[  +68 ms] DevFS: Sync finished
[   +2 ms] Syncing files to device Phone... (completed in 237ms)
[   +1 ms] Synced 0.0MB.
[ +401 ms] <- accept
[   +3 ms] reloaded 1 of 810 libraries
[  +62 ms] Reassembling application
[ +591 ms] Hot reload performed in 1,498ms.
[   +4 ms] Performing hot reload... (completed in 1,516ms)
[   +3 ms] Reloaded 1 of 810 libraries in 1,537ms.
[+35869 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +2 ms] Performing hot reload...
[ +256 ms] Scanned through 552 files in 233ms
[   +6 ms] Syncing files to device Phone...
[   +2 ms] Compiling dart to kernel with 1 updated files
[   +7 ms] <- recompile package:app_id/main.dart 120c0d6a-5f65-42e9-b141-dd58b650eea8
[   +3 ms] package:app_id/main.dart
[   +3 ms] <- 120c0d6a-5f65-42e9-b141-dd58b650eea8
[ +136 ms] Updating files.
[  +48 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Phone... (completed in 201ms)
[   +1 ms] Synced 0.0MB.
[ +444 ms] <- accept
[   +3 ms] reloaded 1 of 810 libraries
[  +61 ms] Reassembling application
[ +546 ms] Hot reload performed in 1,505ms.
[   +3 ms] Performing hot reload... (completed in 1,525ms)
[   +2 ms] Reloaded 1 of 810 libraries in 1,545ms.
[+209476 ms] 
                      ══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
                      The following _TypeError was thrown during a service extension callback for
                      "ext.flutter.inspector.getRootWidgetSummaryTree":
                      type 'Null' is not a subtype of type 'String' of 'function result'

                      When the exception was thrown, this was the stack:
                      #0      _Location.file (package:flutter/src/widgets/widget_inspector.dart)
                      #1      _Location.toJsonMap (package:flutter/src/widgets/widget_inspector.dart:2844:15)
                      #2      _Location.toJsonMap.<anonymous closure> (package:flutter/src/widgets/widget_inspector.dart:2853:42)
                      #3      MappedListIterable.elementAt (dart:_internal/iterable.dart:412:31)
                      #4      ListIterator.moveNext (dart:_internal/iterable.dart:341:26)
                      #5      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
                      #6      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
                      #7      new List.of (dart:core-patch/array_patch.dart:50:28)
                      #8      ListIterable.toList (dart:_internal/iterable.dart:212:44)
                      #9      _Location.toJsonMap (package:flutter/src/widgets/widget_inspector.dart:2854:9)
                      #10     InspectorSerializationDelegate.additionalNodeProperties
(package:flutter/src/widgets/widget_inspector.dart:3169:53)
                      #11     DiagnosticsNode.toJsonMap.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:1593:21)
                      #12     DiagnosticsNode.toJsonMap (package:flutter/src/foundation/diagnostics.dart:1608:6)
                      #13     _ElementDiagnosticableTreeNode.toJsonMap (package:flutter/src/widgets/framework.dart:4297:45)
                      #14     WidgetInspectorService._nodeToJson (package:flutter/src/widgets/widget_inspector.dart:1499:18)
                      #15     WidgetInspectorService._getRootWidgetSummaryTree (package:flutter/src/widgets/widget_inspector.dart:1684:12)    
                      #16     WidgetInspectorService._registerObjectGroupServiceExtension.<anonymous closure>
                      (package:flutter/src/widgets/widget_inspector.dart:793:58)
                      #17     WidgetInspectorService._registerObjectGroupServiceExtension.<anonymous closure>
                      (package:flutter/src/widgets/widget_inspector.dart:792:17)
                      #18     BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:597:32)   
                      <asynchronous suspension>
                      ════════════════════════════════════════════════════════════════════════════════════════════════════
[  +73 ms] 
           Another exception was thrown: type 'Null' is not a subtype of type 'String' of 'function result'
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

</details>

<details>
<summary>flutter doctor -v</summary>

```sh
flutter doctor -v
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1110], locale en-IN)
    • Flutter version 2.2.3 at C:\src\flutter
    • Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\darshan\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\darshan\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31205.134
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.58.1)
    • VS Code at C:\Users\darshan\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[√] VS Code, 64-bit edition (version 1.58.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.24.0

[√] Connected device (4 available)
    • ASUS X01BDA (mobile) • K2AAGF000218AW8 • android-arm64  • Android 9 (API 28)
    • Windows (desktop)    • windows         • windows-x64    • Microsoft Windows [Version 10.0.19043.1110]
    • Chrome (web)         • chrome          • web-javascript • Google Chrome 91.0.4472.124
    • Edge (web)           • edge            • web-javascript • Microsoft Edge 91.0.864.70

• No issues found!
```

</details>