Skip to content

Instantly share code, notes, and snippets.

@benqy
Last active February 27, 2021 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benqy/ae05139e6a4d0a1cf2ac6eddfa3debc0 to your computer and use it in GitHub Desktop.
Save benqy/ae05139e6a4d0a1cf2ac6eddfa3debc0 to your computer and use it in GitHub Desktop.

私有构造函数

class Test{
  Test._();
}

定义函数成员的参数签名

class Test{
  final String Function(String a, int b) calc;
  Test(this.calc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment