compactString static method

Layout<String> compactString({
  1. String? property,
})

Implementation

static Layout<String> compactString({String? property}) {
  return CustomLayout<List<int>, String>(
      layout: bytes(),
      decoder: (bytes) => StringUtils.decode(bytes),
      encoder: (src) => StringUtils.encode(src),
      property: property);
}