Created
April 11, 2015 09:25
-
-
Save zoechi/28321d64aa5ed5ec3768 to your computer and use it in GitHub Desktop.
setter return type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async' show Future, Stream; | |
class SomeClass { | |
int _someValue; | |
void set someValue(int val) => | |
new Future.delayed(new Duration(milliseconds: 500), () => _someValue = val); | |
Future set someValue(int val) => | |
new Future.delayed(new Duration(milliseconds: 500), () => _someValue = val); | |
int get someValue => _someValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment