Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix uses_bottom_as_dynamic ("fuzzy arrow") errors for material_select.
Browse files Browse the repository at this point in the history
Using dynamic as bottom will become an error in Dart 2.0. dart-lang/sdk#29630

PiperOrigin-RevId: 182020806
  • Loading branch information
srawlins authored and nshahan committed Jan 19, 2018
1 parent 9f4be0b commit e1917b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/material_select/display_name.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ void displayNameRendererDirective(HasRenderer hasRenderer) {
if (hasRenderer != null) hasRenderer.itemRenderer = _displayNameRenderer;
}

final _displayNameRenderer = (HasUIDisplayName item) => item.uiDisplayName;
final _displayNameRenderer =
(dynamic item) => (item as HasUIDisplayName).uiDisplayName;

0 comments on commit e1917b7

Please sign in to comment.