ContentInsertionConfiguration constructor
- required ValueChanged<
KeyboardInsertedContent> onContentInserted, - List<
String> allowedMimeTypes = kDefaultContentInsertionMimeTypes,
Creates a content insertion configuration with the specified options.
A handler for inserted content, in the form of onContentInserted, must be supplied.
The allowable mime types of inserted content may also be provided via allowedMimeTypes, which cannot be an empty list.
Implementation
ContentInsertionConfiguration({
required this.onContentInserted,
this.allowedMimeTypes = kDefaultContentInsertionMimeTypes,
}) : assert(allowedMimeTypes.isNotEmpty);