averageSC method
- @Deprecated('Dart natively supports this function. Read DartDoc comment for more info.')
Deprecation hint: Read the migration guide for more details on migrating.
Returns the average value (arithmetic mean) of all elements.
If collection is empty this returns null
.
Example:
[2.0, 4.0, 6.0, 8.0].average(); // 5.0
Implementation
@Deprecated(
'Dart natively supports this function. Read DartDoc comment for more info.')
double? averageSC() {
return averageBy((n) => n);
}