string static method

BcsType<String, dynamic> string([
  1. BcsTypeOptions<String, String>? options
])

Implementation

static BcsType<String,dynamic> string([BcsTypeOptions<String, String>? options]) {
  return stringLikeBcsType(
    name: 'string',
    toBytes: (value) => Uint8List.fromList(utf8.encode(value)),
    fromBytes: (bytes) => utf8.decode(bytes),
    validate: options?.validate,
  );
}