vyrax_core 0.2.1
vyrax_core: ^0.2.1 copied to clipboard
Core contracts and shared models for Vyrax.
example/vyrax_core_example.dart
import 'package:vyrax_core/vyrax_core.dart';
void main() {
const issue = VyraxIssue(
id: 'VYRAX_EXAMPLE',
title: 'Core package wiring',
description: 'Core package is wired correctly.',
severity: VyraxSeverity.info,
category: VyraxIssueCategory.testing,
file: 'example/vyrax_core_example.dart',
line: 1,
);
// Keep example intentionally minimal while still using the value.
final message = issue.message;
if (message.isEmpty) {
throw StateError('Example message must not be empty.');
}
}