Skip to content

Instantly share code, notes, and snippets.

@abhaysood
Created May 28, 2021 12:51
Show Gist options
  • Save abhaysood/2fdd6751f2ab82e0c7263dfe9b658b3e to your computer and use it in GitHub Desktop.
Save abhaysood/2fdd6751f2ab82e0c7263dfe9b658b3e to your computer and use it in GitHub Desktop.
Blog: Enrich the Flutter Inspector with Diagnosticable properties
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(IntProperty('_counter', _counter));
properties.add(DiagnosticsProperty<MyColorScheme>('myColorScheme', _myColorScheme));
_myColorScheme.debugFillProperties(properties);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment