SlideOptions.fromMap constructor
SlideOptions.fromMap(
- Map<String, dynamic> map
)
Implementation
factory SlideOptions.fromMap(Map<String, dynamic> map) {
validate(map);
return SlideOptions(
devicePreview: map['devicePreview'] ?? false,
scrollable: map['scrollable'] ?? false,
layout: enumFromString(
SlideLayout.values,
map['layout'],
),
image: map['image'],
imageFit: enumFromString(
ImageFit.values,
map['imageFit'],
),
verticalAlignment: enumFromString(
VerticalAlignment.values,
map['verticalAlignment'],
),
horizontalAlignment: enumFromString(
HorizontalAlignment.values,
map['horizontalAlignment'],
),
mix: map['mix'],
codePreview: map['codePreview'] ?? false,
);
}