NativeView constructor

NativeView({
  1. Key? key,
  2. required String baseUrl,
  3. required String token,
  4. required LuneViewType viewType,
  5. bool solo = true,
})

Creates a new instance of NativeView.

baseUrl The base URL for the Lune SDK API endpoints. Must not be empty. token The access token required for SDK initialization. Must not be empty. viewType The type of view to display (e.g., cashflow, budget, transactions). solo When true, the widget will be rendered independently with its own container. When false, it will be rendered with an IntrinsicHeight wrapper to better integrate with surrounding widgets.

Throws an AssertionError if either baseUrl or token is empty.

Implementation

NativeView({
  super.key,
  required this.baseUrl,
  required this.token,
  required this.viewType,
  this.solo = true,
}) : assert(baseUrl.isNotEmpty && token.isNotEmpty);