toOption method

Option<(A, B, C)> toOption()

Implementation

Option<(A, B, C)> toOption() {
  final a = $1.v;
  if (a == null) {
    return None;
  }
  final b = $2.v;
  if (b == null) {
    return None;
  }
  final c = $3.v;
  if (c == null) {
    return None;
  }

  return Some((a, b, c));
}