Reset deprecation period for setPubRootDirectories (#139592)

This deprecation period is being renewed after we found it affected many IDE plugins that had not yet migrated, but did not receive a warning during the deprecation period.
We also expected to have a migration guide since the migration is not always to simply rename to addPubRootDirectories. This will give another 1+ year for the migration to be completed.

Part of https://github.com/flutter/flutter/issues/139243
Will update announcement at flutter-announce to reflect this API will remain for a while longer.
This commit is contained in:
Kate Lovett
2023-12-07 10:16:08 -06:00
committed by GitHub
parent 2b218fd1fc
commit da7e5e3418
2 changed files with 2 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ enum WidgetInspectorServiceExtensions {
/// extension is registered.
@Deprecated(
'Use addPubRootDirectories instead. '
'This feature was deprecated after v3.1.0-9.0.pre.',
'This feature was deprecated after v3.18.0-2.0.pre.',
)
setPubRootDirectories,

View File

@@ -1486,7 +1486,7 @@ mixin WidgetInspectorService {
@protected
@Deprecated(
'Use addPubRootDirectories instead. '
'This feature was deprecated after v3.1.0-9.0.pre.',
'This feature was deprecated after v3.18.0-2.0.pre.',
)
void setPubRootDirectories(List<String> pubRootDirectories) {
addPubRootDirectories(pubRootDirectories);