inspirobot 1.0.0 copy "inspirobot: ^1.0.0" to clipboard
inspirobot: ^1.0.0 copied to clipboard

An InspiroBot API client.

example/inspirobot_example.dart

import 'package:inspirobot/inspirobot.dart';

Future<void> main() async {
  // Create a client.
  final inspiroBot = InspiroBot();

  // Generate an image.
  final imageUrl = await inspiroBot.generate();

  // Enter Mindfulness Mode, and get the first set.
  final mindfulnessMode = await inspiroBot.startMindfulnessMode();
  final mindfulnessModeSet =
      await inspiroBot.getMindfulnessModeSet(mindfulnessMode);

  // Close the client.
  inspiroBot.close();
}