| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 library components_radio; | |
| 6 | |
| 7 import '../fn.dart'; | 5 import '../fn.dart'; |
| 8 import 'button_base.dart'; | 6 import 'button_base.dart'; |
| 9 import 'ink_well.dart'; | 7 import 'ink_well.dart'; |
| 10 | 8 |
| 11 typedef void ValueChanged(value); | 9 typedef void ValueChanged(value); |
| 12 | 10 |
| 13 class Radio extends ButtonBase { | 11 class Radio extends ButtonBase { |
| 14 Object value; | 12 Object value; |
| 15 Object groupValue; | 13 Object groupValue; |
| 16 ValueChanged onChanged; | 14 ValueChanged onChanged; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 highlight ? _highlightStyle : _style | 54 highlight ? _highlightStyle : _style |
| 57 ), | 55 ), |
| 58 onGestureTap: _handleClick | 56 onGestureTap: _handleClick |
| 59 ); | 57 ); |
| 60 } | 58 } |
| 61 | 59 |
| 62 void _handleClick(_) { | 60 void _handleClick(_) { |
| 63 onChanged(value); | 61 onChanged(value); |
| 64 } | 62 } |
| 65 } | 63 } |
| OLD | NEW |