sumSC 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 sum of all elements.
Example:
[2, 6, 4, 8].sum(); // 20
Implementation
@Deprecated(
'Dart natively supports this function. Read DartDoc comment for more info.')
int sumSC() {
return sumBy((n) => n);
}