$dataFromString static method

$Value? $dataFromString(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Implementation

static $Value? $dataFromString(
    Runtime runtime, $Value? target, List<$Value?> args) {
  final parameters = (args[2]?.$value as Map?)?.map((key, value) =>
      MapEntry(key.$reified.toString(), value.$reified.toString()));
  return $Uri.wrap(Uri.dataFromString(args[0]!.$value,
      mimeType: args[1]?.$value ?? "application/octet-stream",
      parameters: parameters,
      base64: args[3]?.$value ?? false));
}