Share constructor

Share({
  1. Color? color,
  2. double? size,
  3. Shadow? shadow,
  4. String? semanticLabel,
  5. Key? key,
})

Implementation

factory Share({
  Color? color,
  double? size,
  Shadow? shadow,
  String? semanticLabel,
  Key? key,
}) {
  if (Platform.isIOS || Platform.isMacOS) {
    return Share.cupertino(
      color: color,
      size: size,
      shadow: shadow,
      semanticLabel: semanticLabel,
      key: key,
    );
  } else {
    return Share.material(
      color: color,
      size: size,
      shadow: shadow,
      semanticLabel: semanticLabel,
      key: key,
    );
  }
}