hidePart static method

String hidePart(
  1. String? string, {
  2. int start = 0,
  3. int? end,
  4. String replaceWith = '*',
})

Obscures part of string by replace the characters between start (inclusive) and end exclusive with replaceWith

If start is not passed then it is defaults to 0. If end is not passed it defaults to the end of the string.

Implementation

static String hidePart(
  String? string, {
  int start = 0,
  int? end,
  String replaceWith = '*',
}) => Part.hidePart(string, start: start, end: end, replaceWith: replaceWith);