Dart Documentationchrome.downloadsDangerType

DangerType class

file
The download's filename is suspicious.
url
The download's URL is known to be malicious.
content
The downloaded file is known to be malicious.
uncommon
The download's URL is not commonly downloaded and could be dangerous.
host
The download came from a host known to distribute malicious binaries and is likely dangerous.
unwanted
The download is potentially unwanted or unsafe. E.g. it could make changes to browser or computer settings.
safe
The download presents no known danger to the user's computer.
accepted
The user has accepted the dangerous download.
class DangerType extends ChromeEnum {
 static const DangerType FILE = const DangerType._('file');
 static const DangerType URL = const DangerType._('url');
 static const DangerType CONTENT = const DangerType._('content');
 static const DangerType UNCOMMON = const DangerType._('uncommon');
 static const DangerType HOST = const DangerType._('host');
 static const DangerType UNWANTED = const DangerType._('unwanted');
 static const DangerType SAFE = const DangerType._('safe');
 static const DangerType ACCEPTED = const DangerType._('accepted');

 static const List<DangerType> VALUES = const[FILE, URL, CONTENT, UNCOMMON, HOST, UNWANTED, SAFE, ACCEPTED];

 const DangerType._(String str): super(str);
}

Extends

ChromeEnum > DangerType

Static Properties

const DangerType ACCEPTED #

static const DangerType ACCEPTED = const DangerType._('accepted')

const DangerType CONTENT #

static const DangerType CONTENT = const DangerType._('content')

const DangerType FILE #

static const DangerType FILE = const DangerType._('file')

const DangerType HOST #

static const DangerType HOST = const DangerType._('host')

const DangerType SAFE #

static const DangerType SAFE = const DangerType._('safe')

const DangerType UNCOMMON #

static const DangerType UNCOMMON = const DangerType._('uncommon')

const DangerType UNWANTED #

static const DangerType UNWANTED = const DangerType._('unwanted')

const DangerType URL #

static const DangerType URL = const DangerType._('url')

const List<DangerType> VALUES #

static const List<DangerType> VALUES = const[FILE, URL, CONTENT, UNCOMMON, HOST, UNWANTED, SAFE, ACCEPTED]

Properties

final String value #

inherited from ChromeEnum
final String value

Methods

String toString() #

inherited from ChromeEnum

Returns a string representation of this object.

docs inherited from Object
String toString() => value;