Remove unneeded analyzer ignores (#7109)

We don't need these anymore.
This commit is contained in:
Adam Barth
2016-11-30 14:54:01 -08:00
committed by GitHub
parent c2e965fd07
commit f960215167
4 changed files with 10 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ enum _Location {
Bermuda
}
typedef Widget DemoItemBodyBuilder(DemoItem<dynamic> item);
typedef Widget DemoItemBodyBuilder<T>(DemoItem<T> item);
typedef String ValueToString<T>(T value);
class DualHeaderWithHint extends StatelessWidget {
@@ -152,7 +152,7 @@ class DemoItem<T> {
final String name;
final String hint;
final DemoItemBodyBuilder builder;
final DemoItemBodyBuilder<T> builder;
final ValueToString<T> valueToString;
T value;
bool isExpanded = false;
@@ -189,7 +189,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
value: 'Caribbean cruise',
hint: 'Change trip name',
valueToString: (String value) => value,
builder: (DemoItem<String> item) { // ignore: argument_type_not_assignable, https://github.com/flutter/flutter/issues/5771
builder: (DemoItem<String> item) {
void close() {
setState(() {
item.isExpanded = false;
@@ -223,7 +223,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
value: _Location.Bahamas,
hint: 'Select location',
valueToString: (_Location location) => location.toString().split(".")[1],
builder: (DemoItem<_Location> item) { // ignore: argument_type_not_assignable, https://github.com/flutter/flutter/issues/5771
builder: (DemoItem<_Location> item) {
void close() {
setState(() {
item.isExpanded = false;
@@ -293,7 +293,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
value: 80.0,
hint: 'Select sun level',
valueToString: (double amount) => '${amount.round()}',
builder: (DemoItem<double> item) { // ignore: argument_type_not_assignable, https://github.com/flutter/flutter/issues/5771
builder: (DemoItem<double> item) {
void close() {
setState(() {
item.isExpanded = false;