ChatPlatformServices constructor

const ChatPlatformServices({
  1. Future<List<PromptAttachment>> pickAttachments(
    1. PromptAttachmentKind kind
    ) = platform.pickPlatformAttachments,
  2. Future<PromptAttachment?> readImage(
    1. PromptAttachment attachment
    ) = platform.readDroppedImageAttachment,
  3. ChatPathResolver resolvePath = platform.resolvePlatformPath,
  4. ImageProvider<Object> imageForPath(
    1. String path
    ) = platform.platformImageForPath,
  5. String workingDirectory() = platform.platformWorkingDirectory,
})

Implementation

const ChatPlatformServices({
  this.pickAttachments = platform.pickPlatformAttachments,
  this.readImage = platform.readDroppedImageAttachment,
  this.resolvePath = platform.resolvePlatformPath,
  this.imageForPath = platform.platformImageForPath,
  this.workingDirectory = platform.platformWorkingDirectory,
});