[ci] Enable no_runtimeType_toString (#3129)
Enables the `no_runtimeType_toString` analysis option. This isn't part
of the base flutter/flutter analysis options, but is set in
flutter/packages which this repo better corresponds to.
This is already enabled in flutter/plugins, and is being enabled here as
part of aligning their options.
Part of https://github.com/flutter/flutter/issues/113764
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 79eeca9..498d19d 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -115,7 +115,7 @@
- no_leading_underscores_for_library_prefixes
- no_leading_underscores_for_local_identifiers
- no_logic_in_create_state
- # - no_runtimeType_toString # ok in tests; we enable this only in packages/
+ - no_runtimeType_toString # DIFFERENT FROM FLUTTER/FLUTTER
- non_constant_identifier_names
- noop_primitive_operations
- null_check_on_nullable_type_parameter