@@ -258,7 +258,7 @@ class FlutterPlugin implements Plugin<Project> {
258
258
259
259
Boolean previewDart2Value = false
260
260
if (project. hasProperty(' preview-dart-2' )) {
261
- previewDart2Value = project. property(' preview-dart-2' )
261
+ previewDart2Value = project. property(' preview-dart-2' ). toBoolean()
262
262
}
263
263
String [] fileSystemRootsValue = null
264
264
if (project. hasProperty(' filesystem-roots' )) {
@@ -270,8 +270,9 @@ class FlutterPlugin implements Plugin<Project> {
270
270
}
271
271
Boolean trackWidgetCreationValue = false
272
272
if (project. hasProperty(' track-widget-creation' )) {
273
- trackWidgetCreationValue = project. property(' track-widget-creation' )
273
+ trackWidgetCreationValue = project. property(' track-widget-creation' ). toBoolean()
274
274
}
275
+
275
276
String extraFrontEndOptionsValue = null
276
277
if (project. hasProperty(' extra-front-end-options' )) {
277
278
extraFrontEndOptionsValue = project. property(' extra-front-end-options' )
@@ -282,7 +283,7 @@ class FlutterPlugin implements Plugin<Project> {
282
283
}
283
284
Boolean preferSharedLibraryValue = false
284
285
if (project. hasProperty(' prefer-shared-library' )) {
285
- preferSharedLibraryValue = project. property(' prefer-shared-library' )
286
+ preferSharedLibraryValue = project. property(' prefer-shared-library' ). toBoolean()
286
287
}
287
288
String targetPlatformValue = null
288
289
if (project. hasProperty(' target-platform' )) {
0 commit comments