simplifyAt method

String simplifyAt(
  1. int index, {
  2. bool trim = true,
  3. bool collapseSpaces = true,
  4. bool lowerCase = true,
  5. String nullValue = '',
})

Implementation

String simplifyAt(
  int index, {
  bool trim = true,
  bool collapseSpaces = true,
  bool lowerCase = true,
  String nullValue = '',
}) {
  var self = this;
  return self != null && index < self.length
      ? self
            .elementAt(index)
            .simplify(
              trim: trim,
              collapseSpaces: collapseSpaces,
              lowerCase: lowerCase,
              nullValue: nullValue,
            )
      : '';
}