charCount method

int charCount({
  1. bool excludeSpaces = false,
})

Implementation

int charCount({bool excludeSpaces = false}) =>
    excludeSpaces ? replaceAll(' ', '').length : length;