Promise<T> constructor

Promise<T>({
  1. required Future<T> promise,
  2. required Component onResolve(
    1. T
    ),
  3. Component? loading,
  4. Component onReject(
    1. Object
    )?,
  5. String? id,
  6. Map<String, String>? attributes,
  7. Map<String, dynamic>? style,
  8. String? className,
})

Implementation

Promise({
  required this.promise,
  required this.onResolve,
  this.loading,
  this.onReject,
  super.id,
  super.attributes,
  super.style,
  super.className,
}) : super(tag: 'div');