captureMessage method

Future<SentryId> captureMessage(
  1. String formatted, {
  2. SentryLevel? level,
  3. String? template,
  4. List? params,
  5. Scope? scope,
  6. Hint? hint,
})

Reports the template

Implementation

Future<SentryId> captureMessage(
  String formatted, {
  SentryLevel? level,
  String? template,
  List<dynamic>? params,
  Scope? scope,
  Hint? hint,
}) {
  final event = SentryEvent(
    message: SentryMessage(formatted, template: template, params: params),
    level: level ?? SentryLevel.info,
    timestamp: _options.clock(),
  );

  return captureEvent(event, scope: scope, hint: hint);
}