definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'hot_reload',
      description: 'Apply code changes to the attached app through its own `flutter run`: '
          'a hot reload keeps state, restart:true restarts it. Only the attached app is touched; '
          'never signal flutter_tools from a shell. Needs an app started by `flutter run`. '
          'Then watches the screen settle plus a few seconds and returns the errors the app threw meanwhile '
          '(data.errors: summary, location, count) and warns when a scrollable holds children but painted none; '
          '"0 errors" means the screen is healthy, not just that the code compiled.',
      inputSchema: ObjectSchema(
        properties: {
          'restart': Schema.bool(description: 'Hot restart instead of hot reload. Default false.'),
        },
      ),
    );