allowedMimeTypes property

List<String> allowedMimeTypes
final

Used when a user inserts image-based content through the device keyboard, currently only used on Android.

The passed list of strings will determine which MIME types are allowed to be inserted via the device keyboard.

The default mime types are given by kDefaultContentInsertionMimeTypes. These are all the mime types that are able to be handled and inserted from keyboards.

This field cannot be an empty list.

This example shows how to limit image insertion to specific file types.
link

To create a local project with this code sample, run:
flutter create --sample=widgets.ContentInsertionConfiguration.allowedMimeTypes.1 mysample

See also:

Implementation

final List<String> allowedMimeTypes;