Skip to content

Instantly share code, notes, and snippets.

@timsneath
Last active October 22, 2020 17:20
Show Gist options
  • Save timsneath/c180409725fb2570dc90cf1013db8d66 to your computer and use it in GitHub Desktop.
Save timsneath/c180409725fb2570dc90cf1013db8d66 to your computer and use it in GitHub Desktop.
// In function parameters.
void initialize(int? count) {
// It's possible that count is null.
}
// In function return values.
static List<double?>? getTemperatures() {
// Can return null instead of a List, and the list can contain nulls.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment